Skip to content

Commit

Permalink
Merge pull request #563 from hhatto/migrate-from-travisci-to-github-a…
Browse files Browse the repository at this point in the history
…ctions

fix coverage and upload codecov
  • Loading branch information
hhatto authored Jul 25, 2020
2 parents 5cdf310 + f825b9e commit 2ba1a5a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install .
pip install flake8 pytest pydiff
pip install flake8 pytest pytest-cov pydiff
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
Expand All @@ -39,14 +39,15 @@ jobs:
python -m doctest -v README.rst
- name: Test with pytest
run: |
pytest
pytest --cov-report xml --cov=autopep8
python test/acid.py -aaa --experimental test/example.py
python test/acid.py -aaa --experimental test/example_with_reduce.py
python test/acid.py --pycodestyle= -aaa --compare-bytecode --experimental test/example.py
python test/acid.py --pycodestyle= --aggressive --line-range 550 610 test/inspect_example.py
python test/acid.py --pycodestyle= --line-range 289 925 test/vectors_example.py
python test/test_suite.py
- name: Coverage Code
if: ${{ success() }} && matrix.python-version == 3.7
run: |
./coveralls.bash
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
if: matrix.python-version == 3.7 && success()
with:
fail_ci_if_error: true

0 comments on commit 2ba1a5a

Please sign in to comment.