Skip to content

(feat): create iowa_forecast/models_configs.pymodule to handle ARIM… #10

(feat): create iowa_forecast/models_configs.pymodule to handle ARIM…

(feat): create iowa_forecast/models_configs.pymodule to handle ARIM… #10

Workflow file for this run

name: CI Test Pipeline
on:
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
- name: Run tests
run: |
pytest --cov=iowa_forecast --cov-report=xml --cov-report=html tests/
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: ./htmlcov/
- name: Upload coverage report XML
uses: actions/upload-artifact@v4
with:
name: coverage-report-xml
path: coverage.xml