Skip to content

Merge pull request #316 from TemoaProject/dependency-canary-updates #708

Merge pull request #316 from TemoaProject/dependency-canary-updates

Merge pull request #316 from TemoaProject/dependency-canary-updates #708

Workflow file for this run

name: CI
on:
push:
branches:
[
"main",
"temoa_alpha",
"ci_testing",
"1.0.0-dev-operator",
"temoa_davey_code",
"unstable",
]
pull_request:
branches:
[
"main",
"temoa_alpha",
"ci_testing",
"1.0.0-dev-operator",
"temoa_davey_code",
"unstable",
]
jobs:
test:
name: setup and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- name: Install uv
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
with:
version: "0.9.26"
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Install Graphviz (Ubuntu)
if: runner.os == 'Linux'
run: sudo apt-get install -y graphviz
- name: Install Graphviz (macOS)
if: runner.os == 'macOS'
run: brew install graphviz
- name: Install Graphviz (Windows)
if: runner.os == 'Windows'
run: choco install graphviz -y
- name: Run tests
env:
CI: 1
run: uv run pytest tests --cov --cov-branch --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@75cd11691c0faa626561e295848008c8a7dddffe # v5.3.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
type-check:
name: type check
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- name: Install uv
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
with:
version: "0.9.26"
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: Run mypy
run: uv run mypy --config-file=pyproject.toml .