Skip to content

0.6.0 Rewrite

0.6.0 Rewrite #3

Workflow file for this run

name: CI
on:
push:
branches:
- master
- main
- uv-cleanup
pull_request:
branches:
- main
- master
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python-version: ['3.11', '3.12', '3.13']
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.7.6"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --extra all
- name: Lint with ruff
run: uv run ruff check nltools/
- name: Run tests
run: uv run pytest -n 2 --tb=short
- name: Build docs
if: matrix.python-version == '3.12'
run: uv run jupyter-book build docs
- name: Build package
if: matrix.python-version == '3.12'
run: uv build