Add .ruff.toml, ty.toml, .coveragerc, .pytest.ini and .pre-commit-config.yaml, take .editorconfig, .gitignore and the CI workflow from the standard (keeping the repository's own CI steps, the byte-exact fixture attributes and the fixture ignore exceptions), and reduce pyproject.toml to metadata plus the setuptools build mapping. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B8cL4zN4XpaQF5cBtASzfq
51 lines
1.6 KiB
YAML
51 lines
1.6 KiB
YAML
# Continuous integration on Gitea Actions.
|
|
#
|
|
# Runner labels: `linux-base` is the label of this studio's runner. If your
|
|
# runner registers different labels, change the `os` matrix.
|
|
# Forgejo and Gitea Actions both read .github/workflows when their own folder is absent.
|
|
# On Forgejo, if the runner's default action mirror lacks setup-pixi, write it as
|
|
# https://github.com/prefix-dev/setup-pixi@v0.9.4.
|
|
# The checks need Python 3.14, which pixi.toml pins, so one environment covers every supported Python.
|
|
name: ci
|
|
on:
|
|
push:
|
|
branches: [main, dev]
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
# Cancels superseded runs on the same branch (Gitea 1.26+; older versions do
|
|
# not cancel).
|
|
concurrency:
|
|
group: ${{ gitea.workflow }}-${{ gitea.event_name }}-${{ gitea.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
check:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [linux-base]
|
|
runs-on: ${{ matrix.os }}
|
|
# pixi comes with the job image, as in the site and publish workflows.
|
|
container:
|
|
image: git.scient.ing/infra/linux-base:26.10.7
|
|
timeout-minutes: 30
|
|
env:
|
|
PYTEST_ADDOPTS: --maxfail=0 # report every failure in CI
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: pixi run fmt-check
|
|
- run: pixi run lint
|
|
- run: pixi run typecheck
|
|
- run: pixi run cov
|
|
# paperspec-specific: the repository checks the oracle exists to run.
|
|
- name: Lint the Markdown
|
|
run: pixi run lint-md
|
|
- name: Check the repository
|
|
run: pixi run verify
|
|
- name: Stress the reference implementation
|
|
run: pixi run stress
|