Skip to content

docs: enforce branch protection rules #119

docs: enforce branch protection rules

docs: enforce branch protection rules #119

Workflow file for this run

name: Test
on:
pull_request:
branches:
- '**'
push:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.os }}
env:
UV_NO_SOURCES: "1"
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.10', '3.11']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-extras
- name: Run ruff linter (check)
run: uv run ruff check openadapt_ml/
- name: Run ruff formatter (check)
run: uv run ruff format --check openadapt_ml/
- name: Run pytest
run: uv run pytest tests/ -v --ignore=tests/integration