Skip to content

Update python-tests.yml #25

Update python-tests.yml

Update python-tests.yml #25

Workflow file for this run

name: "CI"
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
run:
name: "tests & coverage"
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install APT packages
run: sudo apt install xvfb pkg-config python3-dev libgirepository1.0-dev libcairo2-dev gir1.2-webkit2-4.0 libcanberra-gtk3-module
- name: Install hatch
run: |
python -m pip install hatch toga
- name: Coverage
run: xvfb-run -a hatch run cov
- name: Tests
run: xvfb-run -a hatch run +py=${{ matrix.python-version }} test:test