Skip to content

Merge pull request #64 from PeterOche/main #34

Merge pull request #64 from PeterOche/main

Merge pull request #64 from PeterOche/main #34

Workflow file for this run

name: Python CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
env:
PIP_CACHE_DIR: ${{ runner.temp }}/pip-cache
- name: Cache pip
uses: actions/cache@v4
with:
path: ${{ runner.temp }}/pip-cache
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Lint with ruff
run: |
pip install ruff
ruff check .
- name: Test with pytest and coverage
run: |
pip install pytest pytest-cov
pytest --cov=src --cov-report=term-missing