Skip to content

Update installation.rst #11

Update installation.rst

Update installation.rst #11

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