Skip to content
Open
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
35 changes: 28 additions & 7 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,35 @@ jobs:
conda info
conda list

- name: install with pip
- name: Install package and test dependencies
shell: bash -l {0}
run: |
which pip
pip install -e .
conda list
which pip
pip install -e .
pip install pytest-cov
conda list

- name: Run test suite
- name: Run test suite with coverage
shell: bash -l {0}
#run: prep-license ${{ secrets.MODELLER_KEY }} && pytest -v # no valid modeller key
run: pytest -v
run: |
pytest -v --cov=prepmd --cov-report=term-missing --cov-report=lcov

- name: Coveralls GitHub Action
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: coverage.lcov
flag-name: ${{ matrix.os }}-py${{ matrix.python-version }}
parallel: true
fail-on-error: false

coveralls:
name: Finalise Coveralls
needs: tests
runs-on: ubuntu-24.04
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e # v2.3.7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
Loading