Skip to content

Merge pull request #271 from SABS-R3-Epidemiology/rccreswell-patch-1 #1770

Merge pull request #271 from SABS-R3-Epidemiology/rccreswell-patch-1

Merge pull request #271 from SABS-R3-Epidemiology/rccreswell-patch-1 #1770

Workflow file for this run

name: Coverage
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
build-and-test:
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
architecture: x64
- name: install pyEpiabm
run: |
python --version
python -m pip install --upgrade pip setuptools wheel
python -m pip install pyEpiabm/.
python -m pip install coverage codecov
- name: run coverage
run: |
coverage run pyEpiabm/run_tests.py --unit
- name: codecov
if: success()
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
codecov