Model/.github/workflows/unit_tests.yml
2023-09-12 15:56:18 +01:00

34 lines
990 B
YAML

name: Run unit tests
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
# For the moment, we just run with python 3.10
# strategy:
# matrix:
# python-version: [ 3.8, 3.9, 3.10 ]
steps:
- uses: actions/checkout@v2
# - name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
# python-version: ${{ matrix.python-version }}
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r model_data/requirements/requirements.txt
- name: Run tests with pytest
run: |
pip install -r model_data/requirements/dev.txt
pytest
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v2
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: true