Skip to content

Merge pull request #250 from SAIL-Labs/dependabot/github_actions/dot-… #991

Merge pull request #250 from SAIL-Labs/dependabot/github_actions/dot-…

Merge pull request #250 from SAIL-Labs/dependabot/github_actions/dot-… #991

Workflow file for this run

name: CI
on:
pull_request:
paths-ignore:
- doc/**
- README.md
push:
branches:
- main
workflow_dispatch:
jobs:
tests:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- '3.10'
- '3.13'
include:
- os: ubuntu-22.04
python-version: 3.10.0
sync-args: --resolution=lowest-direct
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- name: Checkout Source
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup uv
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
with:
python-version: ${{ matrix.python-version }}
- name: Build
run: uv sync --no-editable --group test ${{ matrix.sync-args }}
- name: Run tests
run: uv run --no-sync pytest --color=yes
type-check:
runs-on: ubuntu-latest
name: type check
concurrency:
group: ${{ github.ref }}-dev
cancel-in-progress: true
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Setup uv
uses: astral-sh/setup-uv@6b9c6063abd6010835644d4c2e1bef4cf5cd0fca # v6.0.1
with:
# Match minimal supported Python version
# to make sure we're not using unparseable syntax
python-version: '3.10'
- name: Run mypy
run: uv run --group typecheck mypy src