Configure GitHub Actions from 3.11

This commit is contained in:
Darren Burns 2022-07-15 11:07:41 +01:00
parent 628bddcf76
commit ab0b833638
2 changed files with 9 additions and 1 deletions

View File

@ -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:

View File

@ -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: