Add Gitea Actions CI: tests on Python 3.10-3.13 and shellcheck
CI / tests (Python 3.10) (pull_request) Failing after 4s
CI / tests (Python 3.11) (pull_request) Failing after 4s
CI / tests (Python 3.12) (pull_request) Failing after 3s
CI / tests (Python 3.13) (pull_request) Failing after 3s
CI / lint (pull_request) Successful in 4s

The matrix covers the Python versions on Ubuntu 22.04/24.04 and Debian
12/13. make lint now includes deploy.sh, and its token check is
rewritten as an if statement to satisfy shellcheck SC2015.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
patrickandClaude Opus 5.5 committed 2026-10-17 15:26:50 -04:00
1 parent c0b3ff991c
commit 792161edaa
4 files changed
+47 -3

No files matched your search

+37
View File
@@ -0,0 +1,37 @@
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
name: tests (Python ${{ matrix.python }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Ubuntu 22.04, Debian 12, Ubuntu 24.04, Debian 13
python: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- run: python3 --version
- run: make test
lint:
runs-on: ubuntu-latest
env:
SHELLCHECK_VERSION: v0.10.0
steps:
- uses: actions/checkout@v4
- name: Install shellcheck
run: |
curl -fsSL "https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION}/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" \
| tar -xJ -C /tmp
echo "/tmp/shellcheck-${SHELLCHECK_VERSION}" >> "$GITHUB_PATH"
- run: shellcheck --version
- run: make lint