| 1 |
name: CI |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ main ] |
| 6 |
pull_request: |
| 7 |
branches: [ main ] |
| 8 |
|
| 9 |
jobs: |
| 10 |
test: |
| 11 |
runs-on: ubuntu-24.04 |
| 12 |
strategy: |
| 13 |
matrix: |
| 14 |
include: |
| 15 |
- python-version: "3.10" |
| 16 |
debian-version: trixie |
| 17 |
- python-version: "3.12" |
| 18 |
debian-version: trixie |
| 19 |
- python-version: "3.13" |
| 20 |
debian-version: trixie |
| 21 |
- python-version: "3.14" |
| 22 |
debian-version: trixie |
| 23 |
container: |
| 24 |
image: python:${{ matrix.python-version }}-${{ matrix.debian-version }} |
| 25 |
steps: |
| 26 |
- uses: actions/checkout@v6 |
| 27 |
- name: Install dependencies |
| 28 |
run: | |
| 29 |
apt-get update |
| 30 |
apt-get install -y --no-install-recommends gettext make |
| 31 |
git config --global --add safe.directory "$GITHUB_WORKSPACE" |
| 32 |
- name: Install nox |
| 33 |
run: pip install nox |
| 34 |
- name: Run tests |
| 35 |
run: nox -x --session "test-${{ matrix.python-version }}" |
| 36 |
env: |
| 37 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 38 |
|
| 39 |
docs: |
| 40 |
runs-on: ubuntu-22.04 |
| 41 |
needs: [] |
| 42 |
strategy: |
| 43 |
matrix: |
| 44 |
python-version: [3.14] |
| 45 |
container: |
| 46 |
image: python:3.14-trixie |
| 47 |
steps: |
| 48 |
- uses: actions/checkout@v6 |
| 49 |
- name: Install nox |
| 50 |
run: pip install nox |
| 51 |
- name: Build docs |
| 52 |
run: nox -x --session "docs" |
| 53 |
|
| 54 |
lint: |
| 55 |
runs-on: ubuntu-22.04 |
| 56 |
needs: [] |
| 57 |
strategy: |
| 58 |
matrix: |
| 59 |
python-version: [3.14] |
| 60 |
container: |
| 61 |
image: python:3.14-trixie |
| 62 |
steps: |
| 63 |
- uses: actions/checkout@v6 |
| 64 |
- name: Install nox |
| 65 |
run: pip install nox |
| 66 |
- name: Run linter |
| 67 |
run: nox -x -t lint |
| 68 |
|
| 69 |
standardjs: |
| 70 |
runs-on: ubuntu-24.04 |
| 71 |
needs: [] |
| 72 |
strategy: |
| 73 |
matrix: |
| 74 |
python-version: [3.14] |
| 75 |
container: |
| 76 |
image: node:22-trixie |
| 77 |
steps: |
| 78 |
- uses: actions/checkout@v6 |
| 79 |
- name: Install standardjs dependencies |
| 80 |
run: make ci-install-standardjs |
| 81 |
- name: Run standardjs |
| 82 |
run: make standardjs |