This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #349 from metachris/tests-python2
Run CI tests also with Python2.7
- Loading branch information
Showing
10 changed files
with
37 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,30 @@ | ||
# Note: to test with Python 2.7, a downgrade in pytest is necessary - last supported is 4.6 series https://docs.pytest.org/en/stable/py27-py34-deprecation.html | ||
name: Run the tests | ||
name: Run the tests and demo.py | ||
|
||
on: [push] | ||
|
||
jobs: | ||
test: | ||
test-pytest: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.5, 3.6, 3.7, 3.8, 3.9] | ||
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
sed -i 's/Sphinx.*//g' requirements_dev.txt | ||
pip install --upgrade pip | ||
pip install -e . | ||
pip install -r requirements_dev.txt | ||
- name: Lint | ||
run: make lint | ||
|
||
# pip install flake8 pytest | ||
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
|
||
- name: Generate the docs | ||
run: make docs | ||
|
||
- name: Run the tests | ||
run: make test | ||
|
||
- name: Run demo.py | ||
run: python examples/demo.py |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
pytest==6.1.2 | ||
pytest==4.6 | ||
pytest-runner==5.2 | ||
bumpversion==0.6.0 | ||
watchdog==0.10.3 | ||
flake8==3.8.4 | ||
coverage==5.3 | ||
tox==3.20.1 | ||
cryptography==3.2.1 | ||
Sphinx==3.2.1 |
This file was deleted.
Oops, something went wrong.