Skip to content

ci: fixes

ci: fixes #43

Workflow file for this run

---
name: Tests
on: [push, pull_request]
jobs:
pytest:
name: Python ${{ matrix.python }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, windows, macos]
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- name: Check out code from GitHub
uses: actions/checkout@v2.3.4
- name: Set up Python ${{ matrix.python }}
id: python
uses: actions/setup-python@v2.2.2
with:
python-version: ${{ matrix.python }}
- name: Install workflow dependencies
run: |
python3 -m pip install -r .github/workflows/requirements.txt
poetry config virtualenvs.create true
poetry config virtualenvs.in-project true
- name: Install dependencies
run: poetry install --no-interaction
- name: Check formatting
run: poetry run black --check hpke tests
- name: Check types
run: poetry run mypy hpke
- name: Run tests and ensure 100% line coverage
run: poetry run pytest --cov-fail-under=100 --cov hpke tests
- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python }}-${{ matrix.os }}
path: .coverage