Skip to content

Commit aa53e0b

Browse files
authored
ci: switch python to use uv (#1276)
This simplifies a lot of things (especially once we add macOS in GitHub Actions in #1275) and is faster, too. `uv` is great!
2 parents effa675 + 58a111a commit aa53e0b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,18 @@ jobs:
4444
luarocks \
4545
ninja-build \
4646
pkg-config \
47-
python3-pip \
48-
python3-setuptools \
49-
python3-wheel \
5047
rcs \
5148
strace \
5249
unzip \
5350
zlib1g-dev
54-
- name: Provision Python Packages
55-
run: python3 -m pip install -r $GITHUB_WORKSPACE/scripts/requirements.txt
51+
52+
- uses: astral-sh/setup-uv@v6
53+
54+
- name: Install Python Packages
55+
run: |
56+
uv venv
57+
uv pip install -r ./scripts/requirements.txt
58+
5659
- name: cargo fmt --check
5760
run: |
5861
export RUSTFLAGS="-D warnings"
@@ -78,4 +81,4 @@ jobs:
7881
# causing tons of errors, so don't set that.
7982
# `test_translator.py` does not rebuild,
8083
# so changing `RUSTFLAGS` will not trigger a full rebuild.
81-
./scripts/test_translator.py tests/
84+
uv run ./scripts/test_translator.py tests/

0 commit comments

Comments
 (0)