Skip to content

Merge pull request #2 from Dakera-AI/fix/publishing-pipeline #5

Merge pull request #2 from Dakera-AI/fix/publishing-pipeline

Merge pull request #2 from Dakera-AI/fix/publishing-pipeline #5

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Python ${{ matrix.python-version }}
runs-on: [self-hosted, linux, arm64]
strategy:
fail-fast: false
matrix:
python-version: ${{ contains(github.event.pull_request.labels.*.name, 'full-matrix') && fromJson('["3.10","3.11","3.12"]') || fromJson('["3.10","3.12"]') }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Lint with ruff
run: ruff check .
- name: Type check with mypy
run: mypy src/ --ignore-missing-imports
- name: Security audit
run: pip-audit
- name: Test with pytest
run: pytest tests/ -v --tb=short