Merge pull request #229 from SABS-R3-Epidemiology/kcgallagher-bugfix-… #1473
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit tests (pyEpiabm) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build-and-test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.7', '3.8', '3.9', '3.10'] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: install pyEpiabm | |
run: | | |
python --version | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install pyEpiabm/. | |
- name: run unit tests | |
run: | | |
python pyEpiabm/run_tests.py --unit |