Skip to content

Chore/ci workflows (#10) #2

Chore/ci workflows (#10)

Chore/ci workflows (#10) #2

Workflow file for this run

name: CI Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ci-test-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: requirements-dev.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run pytest
run: pytest -q
- name: Upload coverage artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-artifacts
path: |
coverage.xml
htmlcov/