Skip to content

Commit

Permalink
Don't specify explicit subdirectories for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
phoerious committed Aug 8, 2024
1 parent 286637e commit f065995
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ relative_files = true
omit =
**/cli.py
**/setup.py
tests/**
docs/**
20 changes: 11 additions & 9 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f065995

Please sign in to comment.