From ab0b833638209c417984c8383beb8f8e97a6ca55 Mon Sep 17 00:00:00 2001 From: Darren Burns Date: Fri, 15 Jul 2022 11:07:41 +0100 Subject: [PATCH] Configure GitHub Actions from 3.11 --- .github/workflows/pythonpackage.yml | 8 +++++++- Makefile | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index 3c4893ee..47dc72bc 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -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: diff --git a/Makefile b/Makefile index 1183bc00..58ed2dbf 100644 --- a/Makefile +++ b/Makefile @@ -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: