Skip to content

Commit

Permalink
Merge pull request #54 from reingart/test-deps
Browse files Browse the repository at this point in the history
Test deps
  • Loading branch information
reingart authored Jun 11, 2021
2 parents 7d6c9a5 + d093ef2 commit 6dd9ada
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
python -m pip install flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Lint with flake8
run: |
# TODO: stop the build if there are Python syntax errors or undefined names
Expand All @@ -44,4 +45,10 @@ jobs:
unzip reingart2019.zip
- name: Test with pytest
run: |
pytest
pytest --html=report.html --self-contained-html
- name: Upload test report
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: report.html
path: report.html
5 changes: 4 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
pytest==6.2.3
pytest==4.6.11; python_version <= '2.7'
pytest==6.2.3; python_version > '3'
pytest-html==1.22.1; python_version <= '2.7'
pytest-html==3.1.1; python_version > '3'

0 comments on commit 6dd9ada

Please sign in to comment.