Files
AareDAQ/.gitea/workflows/ci.yml
T
perl_d d7fa11bc19
CI / lint (pull_request) Successful in 38s
Build and Publish / release (push) Failing after 5s
CI / test (3.11) (pull_request) Successful in 1m38s
CI / test (3.13) (pull_request) Successful in 3m43s
CI / test (3.12) (pull_request) Successful in 3m51s
CI / lint (push) Successful in 5m11s
CI / test (3.12) (push) Successful in 2m27s
CI / test (3.13) (push) Successful in 2m30s
CI / test (3.11) (push) Successful in 2m35s
fix: add py 3.13 to test matrix
2026-07-27 15:03:31 +02:00

52 lines
1.2 KiB
YAML

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup
uses: ./.gitea/actions/install
with:
python_version: "3.12"
index_username: ${{ secrets.GITEA_USER }}
index_password: ${{ secrets.GITEA_TOKEN }}
- name: Format
run: |
source .venv/bin/activate
ruff format --check
test:
runs-on: ubuntu-latest
needs: "lint"
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup
uses: ./.gitea/actions/install
with:
python_version: ${{ matrix.python-version }}
index_username: ${{ secrets.GITEA_USER }}
index_password: ${{ secrets.GITEA_TOKEN }}
- name: Run Pytest with Coverage
env:
QT_QPA_PLATFORM: offscreen
BEAMLINE: SIMULATED
run: |
source .venv/bin/activate
pytest --cov=aare --cov-config=./pyproject.toml --cov-branch --cov-report=xml --no-cov-on-fail ./tests/unit