Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,25 @@ jobs:

- name: Test built package
run: |
pip install pytest
pip install pytest pytest-cov
pip install ./target
pytest -v pipeline/tests
if [ "${{ matrix.python-version }}" = "3.14" ]; then
# Put the in-tree build first on the path, so that coverage is recorded
# against target/openminds rather than the copy in site-packages, whose
# path changes with every Python patch release.
PYTHONPATH=target pytest -v --cov=openminds --cov-report term --cov-report lcov pipeline/tests
else
pytest -v pipeline/tests
fi

- name: Upload coverage to Coveralls
if: matrix.python-version == '3.14'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: coverage.lcov
parallel: false
fail-on-error: false

- name: Checkout main branch
uses: actions/checkout@v4
Expand Down
14 changes: 13 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,19 @@ jobs:
pip install pytest pytest-cov
pip install ./target
if [ "${{ matrix.python-version }}" = "3.14" ]; then
pytest -v --cov=openminds --cov-report term pipeline/tests
# Put the in-tree build first on the path, so that coverage is recorded
# against target/openminds rather than the copy in site-packages, whose
# path changes with every Python patch release.
PYTHONPATH=target pytest -v --cov=openminds --cov-report term --cov-report lcov pipeline/tests
else
pytest -v pipeline/tests
fi

- name: Upload coverage to Coveralls
if: matrix.python-version == '3.14'
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: coverage.lcov
parallel: false
fail-on-error: false
Loading