Skip to content

Fix coverage omit dirs #13

Fix coverage omit dirs

Fix coverage omit dirs #13

Workflow file for this run

# Install Python dependencies, run tests and lint.
#
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Test
on:
push:
branches:
- "main"
pull_request:
permissions:
contents: read
jobs:
test:
runs-on:
- ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.9"
- "3.10"
- "3.11"
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install Tox
run: |
pip install tox coverage
- name: Run tests
run: |
# Run tests and collect coverage data.
tox -e coverage
# Generate LCOV format coverage data for coveralls.
python -m coverage lcov -o coverage.lcov
- name: Send coverage data to coveralls.io
uses: coverallsapp/github-action@v2
with:
flag-name: run-${{ join(matrix.*, '-') }}
file: coverage.lcov
parallel: true
finalize:
name: finalize
needs: test
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- name: Indicate completion to coveralls.io
uses: coverallsapp/github-action@v2
with:
parallel-finished: true