CI: install Python with uv instead of setup-python
CI / tests (Python 3.10) (pull_request) Successful in 15s
CI / tests (Python 3.11) (pull_request) Successful in 14s
CI / tests (Python 3.12) (pull_request) Successful in 16s
CI / tests (Python 3.13) (pull_request) Successful in 15s
CI / lint (pull_request) Successful in 3s
CI / tests (Python 3.10) (pull_request) Successful in 15s
CI / tests (Python 3.11) (pull_request) Successful in 14s
CI / tests (Python 3.12) (pull_request) Successful in 16s
CI / tests (Python 3.13) (pull_request) Successful in 15s
CI / lint (pull_request) Successful in 3s
setup-python only ships builds for real Ubuntu releases and failed on the runner's ubuntu-latest image. uv's standalone builds work on any glibc Linux. make test now takes PYTHON=. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
792161edaa
commit
0628dc515a
2 files changed
+12
-6
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in new issue
Block a user