Skip to content

prepare for v0.9.2 (#289) #679

prepare for v0.9.2 (#289)

prepare for v0.9.2 (#289) #679

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
lint:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: scientific-python/repo-review@v0.11.3
with:
plugins: sp-repo-review
- name: markdownlint
uses: DavidAnson/markdownlint-cli2-action@v19
with:
config: ".markdownlint.yaml"
globs: "**/*.md"
- name: typos
uses: crate-ci/typos@master
- name: install uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.13"
- name: uv sync
run: uv sync --locked
- name: ruff check
run: |
uv run ruff check --output-format=github
uv run ruff format --check
- name: basedpyright --verifytypes
run: uv run basedpyright --ignoreexternal --verifytypes optype
typecheck:
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
np: ["1.23", "1.24", "1.25", "1.26", "2.0", "2.1", "2.2"]
steps:
- uses: actions/checkout@v4
- name: setup uv
uses: astral-sh/setup-uv@v5
with:
python-version: "3.10"
- name: uv sync
run: uv sync --locked
- name: Install numpy ${{ matrix.np }}
run: uv pip install "numpy==${{ matrix.np }}.*"
- name: basedpyright
run: >
uv run --no-sync
basedpyright
-p scripts/config/bpr-np-${{ matrix.np }}.json
- name: basedmypy
run: uv run --no-sync scripts/bmp.py
test:
timeout-minutes: 5
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
py: ["3.10", "3.13"]
include:
- os: ubuntu-latest
py: "3.10"
np: "1.23"
steps:
- uses: actions/checkout@v4
- name: setup uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.py }}
- name: uv sync
run: uv sync --locked
- name: Install old numpy
if: ${{ matrix.np == '1.23' }}
run: uv pip install "numpy==${{ matrix.np }}.*"
- name: pytest
run: uv run --no-sync pytest