mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
testing new github actions workflow for unit tests
This commit is contained in:
parent
5feac9e2c5
commit
c850a4c7a5
2 changed files with 33 additions and 1 deletions
|
|
@ -8,4 +8,5 @@ omit =
|
|||
model_data/app.py
|
||||
model_data/plotting/*
|
||||
recommendations/rdsap_tables.py
|
||||
model_data/simulation_system/*
|
||||
model_data/simulation_system/*
|
||||
model_data/cleaner_app.py
|
||||
31
.github/workflows/unit_tests.yml
vendored
Normal file
31
.github/workflows/unit_tests.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
name: Python package
|
||||
|
||||
on: [ push, pull_request ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: [ 3.8, 3.9, 3.10 ]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- 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
|
||||
Loading…
Add table
Reference in a new issue