# Continuous integration on Gitea Actions. # # Runner labels: `linux-base` is the label of Scienting'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