Add Gitea Actions CI: tests on Python 3.10-3.13 and shellcheck #7

Merged
patrick merged 2 commits from ci/gitea-actions into main 2026-10-17 19:30:00 +00:00
2 changed files with 12 additions and 6 deletions
Showing only changes of commit 0628dc515a - Show all commits

No files matched your search

+9 -5
View File
@@ -16,11 +16,15 @@ jobs:
python: ["3.10", "3.11", "3.12", "3.13"] python: ["3.10", "3.11", "3.12", "3.13"]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-python@v5 # setup-python only has builds for real Ubuntu releases, and the runner's
with: # ubuntu-latest image isn't one. uv's standalone builds run on any glibc Linux.
python-version: ${{ matrix.python }} - uses: astral-sh/setup-uv@v6
- run: python3 --version - name: Install Python ${{ matrix.python }}
- run: make test run: |
uv python install ${{ matrix.python }}
echo "PYTHON=$(uv python find ${{ matrix.python }})" >> "$GITHUB_ENV"
- run: $PYTHON --version
- run: make test PYTHON="$PYTHON"
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
+3 -1
View File
@@ -1,7 +1,9 @@
.PHONY: test lint .PHONY: test lint
PYTHON ?= python3
test: test:
python3 -m unittest discover -s tests $(PYTHON) -m unittest discover -s tests
lint: lint:
shellcheck agent/kernelwatch-agent agent/install.sh agent/deploy.sh server/install.sh server/kernelwatch.sh shellcheck agent/kernelwatch-agent agent/install.sh agent/deploy.sh server/install.sh server/kernelwatch.sh