mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
34 lines
990 B
YAML
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
|