Skip to content

Fix GitHub actions (Codecov + macOS) (#32) #92

Fix GitHub actions (Codecov + macOS) (#32)

Fix GitHub actions (Codecov + macOS) (#32) #92

Workflow file for this run

name: Coverage
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Generate coverage report
run: |
coverage run --source pangocairocffi -m pytest
coverage report -m
coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}