Skip to content

Commit d5dda86

Browse files
committed
Don't run Python tests on Docker Jammy images (they need 3.11+)
1 parent 03f51c8 commit d5dda86

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/scc-linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
python-version: '3.13'
2424

2525
- name: Install dependencies
26-
run: pip install build setuptools ioctl-opt libusb1 toml vdf pytest
26+
run: pip install build setuptools ioctl-opt libusb1 vdf pytest
2727

2828
- name: Build SCC
2929
run: python -m build

Dockerfile

+5-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ RUN <<EOR
4343
python -m build --wheel
4444
python -m venv .env
4545
. .env/bin/activate
46-
pip install libusb1 pytest toml vdf
47-
python -m pytest tests
46+
pip install libusb1 pytest vdf
47+
# Tests need Python 3.11+
48+
if [ ${UBUNTU_CODENAME-} != 'jammy' ]; then
49+
python -m pytest tests
50+
fi
4851
pip install --prefix "${TARGET}/usr" --no-warn-script-location dist/*.whl
4952

5053
# Save version

0 commit comments

Comments
 (0)