Skip to content

Reformat skills

Reformat skills #57

Workflow file for this run

name: CI
on:
push:
branches:
- main
- 'stable/**'
- 'renovate/**'
pull_request:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .node-version
- run: npm ci
- uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0
test:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
- run: uv sync --dev --group demo
- run: just coverage
- run: uv run ./demo/manage.py check
- run: uv run ./demo/manage.py makemigrations --check --noinput
- run: uv run ./demo/manage.py test home
- run: just docs-build
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: site
# Required so the `.well-known/agent-skills/` and `.well-known/ai-catalog.json`
# files generated by docs/hooks.py are included in the Pages artifact.
include-hidden-files: true
test-lowest-deps:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
- run: just test-lowest-deps
test-highest-deps:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
- uses: extractions/setup-just@53165ef7e734c5c07cb06b3c8e7b647c5aa16db3 # v4.0.0
- run: just test-highest-deps
test-compatibility:
runs-on: ubuntu-latest
needs: lint
strategy:
matrix:
# Supported versions of Python, excluding the newest (covered by
# test-highest-deps).
include:
- python: '3.12'
resolution: lowest-direct
- python: '3.13'
resolution: highest
# Skipped (see test-highest-deps): latest Python.
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
python-version: ${{ matrix.python }}
- run: uv run --resolution ${{ matrix.resolution }} pytest
env:
DB: sqlite
deploy-docs:
needs: test
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
permissions:
pages: write # to deploy to GitHub Pages
id-token: write # to verify the deployment originates from a trusted source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
id: deployment