Skip to content

Close Registration #7026

Close Registration

Close Registration #7026

name: Python Unit Tests
on: [push]
jobs:
lint-and-test:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ['3.10']
steps:
- name: Checkout covid-data-model
uses: actions/checkout@v2
with:
repository: act-now-coalition/covid-data-model
lfs: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache Pip
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements*.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
run: |
python -m pip install pip==21.3.1
pip install numpy==1.21.4
pip install -r requirements.txt -r requirements_test.txt
- name: Check code formatting with black.
run: black --check .
- name: Test with pytest
env:
PYSEIR_FAST_AND_DIRTY: 'True'
run: |
make test