Skip to content

Commit 25b9e3f

Browse files
committed
Fix Make file
1 parent 391b2b1 commit 25b9e3f

File tree

2 files changed

+16
-28
lines changed

2 files changed

+16
-28
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,11 @@ jobs:
2020
run: |
2121
sudo apt-get update -qq
2222
sudo apt-get install -qq swig python-dev libxml2-dev libxmlsec1-dev
23-
pip install .
24-
pip install -e ".[test]"
23+
make install-req
24+
make install-test
2525
2626
- name: Test
2727
run: |
2828
make pytest
2929
make pycodestyle
3030
make flake8
31-
32-
- name: Coveralls
33-
uses: AndreMiras/coveralls-python-action@develop
34-
with:
35-
parallel: true
36-
flag-name: Test
37-
38-
coveralls_finish:
39-
needs: test
40-
runs-on: ubuntu-latest
41-
steps:
42-
- name: Coveralls Finished
43-
uses: AndreMiras/coveralls-python-action@develop
44-
with:
45-
parallel-finished: true

Makefile

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,32 @@ PYTHON_MAJOR_VERSION=2
33
PYTHON_MINOR_VERSION=7
44
PYTHON_VERSION=$(PYTHON_MAJOR_VERSION).$(PYTHON_MINOR_VERSION)
55
PYTHON_WITH_VERSION=python$(PYTHON_VERSION)
6-
PYTHON=$(VIRTUAL_ENV)/bin/python
7-
PIP=$(VIRTUAL_ENV)/bin/pip
8-
FLAKE8=$(VIRTUAL_ENV)/bin/flake8
9-
PYTEST=$(VIRTUAL_ENV)/bin/pytest
10-
PYCODESTYLE=$(VIRTUAL_ENV)/bin/pycodestyle
11-
COVERAGE=$(VIRTUAL_ENV)/bin/coverage
6+
PYTHON=python
7+
PIP=pip
8+
FLAKE8=flake8
9+
PYTEST=pytest
10+
PYCODESTYLE=pycodestyle
11+
COVERAGE=coverage
1212
COVERAGE_CONFIG=tests/coverage.rc
1313
PEP8_CONFIG=tests/pep8.rc
1414
MAIN_SOURCE=src/onelogin/saml2
1515
DEMOS=demo-django demo-flask
16-
TESTS=tests/src/OneLogin/saml2_test
16+
TESTS=tests/src/OneLogin/saml2_tests
1717
SOURCES=$(MAIN_SOURCE) $(DEMO) $(TESTS)
1818

1919
$(VIRTUAL_ENV):
20-
$(PYTHON_WITH_VERSION) -m venv $(VIRTUAL_ENV)
20+
virtualenv $(VIRTUAL_ENV) --python=$(PYTHON_WITH_VERSION)
2121

2222
virtualenv: $(VIRTUAL_ENV)
2323

24-
install: $(PIP) install .
24+
install-req:
25+
$(PIP) install --upgrade 'setuptools<45.0.0'
26+
$(PIP) install .
2527

26-
install-dev: $(PIP) install -e ".[test]"
28+
install-test:
29+
$(PIP) install -e ".[test]"
2730

28-
pytest:
31+
pytest:
2932
$(COVERAGE) run --source $(MAIN_SOURCE) --rcfile=$(COVERAGE_CONFIG) -m pytest
3033
$(COVERAGE) report -m --rcfile=$(COVERAGE_CONFIG)
3134

0 commit comments

Comments
 (0)