Skip to content

Merge pull request #378 from CCPBioSim/355-general-reintroduce-covera… #1

Merge pull request #378 from CCPBioSim/355-general-reintroduce-covera…

Merge pull request #378 from CCPBioSim/355-general-reintroduce-covera… #1

name: Coveralls Main
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: coveralls-main-${{ github.ref }}
cancel-in-progress: true
jobs:
coveralls:
name: Build main coverage baseline
runs-on: ubuntu-24.04
timeout-minutes: 30
permissions:
contents: read
checks: write
statuses: write
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
- name: Set up Python 3.14
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
with:
python-version: "3.14"
- name: Install testing dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -e .[testing]
- name: Run coverage
run: |
python -m pytest tests/unit \
--cov CodeEntropy \
--cov-report term-missing \
--cov-report xml \
-q
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@5cbfd81b66ca5d10c19b062c04de0199c215fb6e
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: coverage.xml
fail-on-error: false