Skip to content

Op

Op #109

Workflow file for this run

name: "Test code"
on:
push:
branches:
- master
paths-ignore:
- 'doc/**'
pull_request:
branches:
- master
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # V5.0.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
with:
enable-cache: true
- name: Install dependencies
run: uv sync --all-extras
- name: Run ruff linter
run: uv run ruff check
- name: Run ruff formatter check
run: uv run ruff format --check
- name: Test with pytest
run: uv run pytest pyosmo/tests/