Skip to content

Commit

Permalink
Optimize py-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Limych committed Jun 1, 2021
1 parent 7852aec commit cef9095
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/py-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,6 @@ jobs:
flake8 ${{ env.package }} tests
pylint ${{ env.package }} tests
- name: "Calculate coverage"
run: |
pytest --basetemp=$RUNNER_TEMP --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar --cov --cov-report=
./bin/check_dirty
- name: "Send coverage to Coveralls"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github

tests:
name: "Test package"
needs: lint
Expand All @@ -78,7 +68,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.9] # py38 was processed on lint job stage
python-version: [3.8 3.9]
experimental: [false]
include:
- python-version: '3.10-dev'
Expand Down Expand Up @@ -121,6 +111,19 @@ jobs:
fi
- name: "Run tests with pytest"
if: matrix.python-version != "3.8"
run: |
pytest --basetemp=$RUNNER_TEMP --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar
./bin/check_dirty
- name: "Run tests with pytest & Calculate coverage"
if: matrix.python-version == "3.8"
run: |
pytest --basetemp=$RUNNER_TEMP --durations=10 -n auto --dist=loadfile -qq -o console_output_style=count -p no:sugar --cov --cov-report=
./bin/check_dirty
- name: "Send coverage to Coveralls"
if: matrix.python-version == "3.8"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: coveralls --service=github

0 comments on commit cef9095

Please sign in to comment.