Skip to content

Update CI workflow build_wheels #27

Update CI workflow build_wheels

Update CI workflow build_wheels #27

name: Tests and Coverage
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11, 3.12, 3.13]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies with Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install --with test,dev
poetry run pip install .
- name: Run tests with coverage
run: poetry run pytest --cov=error_align --cov-report=xml
- name: Upload coverage to Codecov
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true