Skip to content

Test with Python 3.13 and Numpy 2.x #856

Test with Python 3.13 and Numpy 2.x

Test with Python 3.13 and Numpy 2.x #856

Workflow file for this run

name: Static Checks
on:
push:
branches:
- main
pull_request:
concurrency:
group: check-${{github.ref}}
cancel-in-progress: true
jobs:
pre-commit:
name: Check pre-commit hooks
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Check out source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: πŸ“¦ Install pre-commit
run: pipx install pre-commit
- name: πŸͺ Install pre-commit hooks
run: pre-commit install-hooks
# switch git branches so we don't trip the branch pre-commit check
- name: Switch branches
run: git checkout -b check-source HEAD
- name: βœ… Check that pre-commit is clean
run: |
if pre-commit run --all-files; then
echo "::debug title=pre-commit::pre-commit checks passed"
else
git diff
git status -s |sed -Ee 's/^...(.*)/::error file=\1,title=pre-commit::pre-commit would modify this file/'
exit 1
fi
lint:
name: Annotate with lint failures
runs-on: ubuntu-latest
steps:
- name: πŸ“₯ Check out source code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 🧚 Set up Pixi
id: pixi
uses: prefix-dev/[email protected]
with:
pixi-version: latest
activate-environment: true
environments: dev-compat
- name: 🐜 Check source code lint rules
id: lint
run: ruff check --output-format=github