Skip to content

Commit

Permalink
Configure GitHub Actions from 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenburns committed Jul 15, 2022
1 parent 628bddc commit ab0b833
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@ jobs:
run: |
source $VENV
make typecheck
- name: Test with pytest
- if: ${{ matrix.version }} != '3.11.0-beta.4'
name: Test with pytest (with coverage)
run: |
source $VENV
pytest tests -v --cov=./rich --cov-report=xml:./coverage.xml --cov-report term-missing
- if: ${{ matrix.version }} == '3.11.0-beta.4'
name: Test with pytest (no coverage)
run: |
source $VENV
pytest tests -v
- name: Upload code coverage
uses: codecov/codecov-action@v2
with:
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
test:
TERM=unknown pytest --cov-report term-missing --cov=rich tests/ -vv
test-no-cov:
TERM=unknown pytest tests/ -vv
format-check:
black --check .
format:
Expand Down

0 comments on commit ab0b833

Please sign in to comment.