Skip to content

Merge pull request #29 from osmo-tool/claude/guard-step-syntax-refact… #91

Merge pull request #29 from osmo-tool/claude/guard-step-syntax-refact…

Merge pull request #29 from osmo-tool/claude/guard-step-syntax-refact… #91

Workflow file for this run

name: "Test code"
on:
push:
paths-ignore:
- 'doc/**'
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.11", "3.12", "3.13", "3.14" ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
run: uv pip install --system -e ".[dev]"
- name: Run ruff linter
run: uv run ruff check pyosmo/
- name: Run ruff formatter check
run: uv run ruff format --check pyosmo/
- name: Test with pytest
run: uv run pytest pyosmo/tests/