Files
abogen/.github/workflows/test_pip.yml
T

51 lines
1.1 KiB
YAML

name: CI
run-name: CI
on:
push:
branches: [main]
paths:
- '**.py'
- 'pyproject.toml'
pull_request:
paths:
- '**.py'
- 'pyproject.toml'
- '.github/workflows/**'
workflow_dispatch:
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
python-version: ['3.12']
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v8.3.1
with:
enable-cache: true
cache-dependency-glob: pyproject.toml
- name: Install system dependencies (Ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y libegl1
- name: Install dependencies
run: uv pip install --system .[dev]
- name: Run tests
env:
QT_QPA_PLATFORM: offscreen
run: pytest tests/ -v --tb=short