@@ -56,22 +56,28 @@ jobs:
5656 include :
5757 - container : debian:11
5858 python-install : |
59- apt-get update && apt-get install -y python3 python3-pip python3-venv git
59+ apt-get update && apt-get install -y python3 python3-pip python3-venv git curl
60+ extras : " dev,test"
6061 - container : debian:12
6162 python-install : |
62- apt-get update && apt-get install -y python3 python3-pip python3-venv git
63+ apt-get update && apt-get install -y python3 python3-pip python3-venv git curl
64+ extras : " dev,test"
6365 - container : fedora:38
6466 python-install : |
65- dnf install -y python3 python3-pip git
67+ dnf install -y python3 python3-pip git curl
68+ extras : " dev,test"
6669 - container : fedora:39
6770 python-install : |
68- dnf install -y python3 python3-pip git
71+ dnf install -y python3 python3-pip git curl
72+ extras : " dev,test"
6973 - container : rockylinux:9
7074 python-install : |
71- dnf install -y python3 python3-pip git
75+ dnf install -y python3 python3-pip git curl
76+ extras : " dev,test"
7277 - container : alpine:latest
7378 python-install : |
74- apk add --no-cache python3 py3-pip git gcc musl-dev python3-dev
79+ apk add --no-cache python3 py3-pip git gcc musl-dev python3-dev curl
80+ extras : " dev" # Skip torch tests on Alpine (no wheels available)
7581
7682 container : ${{ matrix.container }}
7783
@@ -84,20 +90,22 @@ jobs:
8490 - name : Install uv
8591 run : |
8692 curl -LsSf https://astral.sh/uv/install.sh | sh
87- export PATH="$HOME/.local/bin:$PATH"
8893
8994 - name : Install package
9095 run : |
91- export PATH="$HOME/.local/bin:$PATH"
92- uv venv
93- source .venv/bin/activate
94- uv pip install -e ".[dev,test]"
96+ $HOME/.local/bin/uv venv
97+ . .venv/bin/activate
98+ $HOME/.local/bin/uv pip install -e ".[${{ matrix.extras }}]"
9599
96100 - name : Run tests
97101 run : |
98- export PATH="$HOME/.local/bin:$PATH"
99- source .venv/bin/activate
100- pytest -v
102+ . .venv/bin/activate
103+ if [ "${{ matrix.extras }}" = "dev" ]; then
104+ # Skip torch-related tests on platforms without torch support
105+ pytest -v -k "not torch and not TestShareTorchConfiguration"
106+ else
107+ pytest -v
108+ fi
101109
102110 lint-and-type :
103111 name : Lint and Type Check
0 commit comments