From f06599503a551e030071aee707d27d25434b30a5 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Wed, 7 Aug 2024 17:09:51 +0200 Subject: [PATCH] Don't specify explicit subdirectories for coverage --- .coveragerc | 2 ++ .github/workflows/build-wheels.yml | 20 +++++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.coveragerc b/.coveragerc index 8d34d57a..30f8a07c 100644 --- a/.coveragerc +++ b/.coveragerc @@ -4,3 +4,5 @@ relative_files = true omit = **/cli.py **/setup.py + tests/** + docs/** diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 66058e05..b8670524 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -23,8 +23,10 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ ubuntu-latest, windows-latest, macOS-12 ] +# os: [ ubuntu-latest, windows-latest, macOS-12 ] + os: [ ubuntu-latest ] env: + CIBW_BUILD: "cp312*" CIBW_SKIP: "*-musllinux*" CIBW_ARCHS_MACOS: "x86_64 arm64" CIBW_ARCHS_LINUX: "x86_64" @@ -233,13 +235,7 @@ jobs: python${PYTHON_VERSION} -m pip install -e "resiliparse[all,test]" - name: Run Tests - run: python${PYTHON_VERSION} -m pytest --cov=resiliparse/ --cov=fastwarc/ --cov=resiliparse_common/ --cov-report xml tests/ - - - name: Upload Artifacts - uses: actions/upload-artifact@v3 - with: - name: coverage - path: coverage.xml + run: python${PYTHON_VERSION} -m pytest --cov --cov-report xml tests/ # We cannot use the Codecov GitHub action due to incompatible Glibc versions - name: Upload to Codecov @@ -248,13 +244,19 @@ jobs: run: | set -e python${PYTHON_VERSION} -m codecov_cli.main upload-process \ - --name github-actions-${{ github.run_id }} \ + --file coverage.xml \ --sha ${{ github.sha }} \ --branch ${{ github.ref_name }} \ --slug ${{ github.repository }} \ --git-service github \ --fail-on-error + - name: Upload Artifacts + uses: actions/upload-artifact@v3 + with: + name: coverage + path: coverage.xml + build-documentation: runs-on: ubuntu-latest needs: build-wheels