77 continue-on-error : true
88 runs-on : ${{ matrix.os }}
99
10- # Supported Python versions:
11- # https://github.com/actions/python-versions/blob/main/versions-manifest.json
1210 strategy :
1311 fail-fast : false
1412 matrix :
@@ -31,10 +29,23 @@ jobs:
3129 python -m pip install -r requirements.txt
3230 python -m pip install -r test/requirements.txt
3331
34- - name : Build and install package (wheel)
32+ - name : Build wheel
33+ run : python -m build --wheel
34+
35+ - name : Show dist contents
36+ run : ls -la dist
37+ shell : bash
38+
39+ - name : Install package from wheel (robust)
40+ shell : bash
3541 run : |
36- python -m build --wheel
37- python -m pip install dist/*.whl
42+ WHEEL="$(python -c "import glob; w=glob.glob('dist/*.whl'); print(w[0] if w else '')")"
43+ if [ -z "$WHEEL" ]; then
44+ echo "No wheel was built. dist contains:"
45+ ls -la dist || true
46+ exit 1
47+ fi
48+ python -m pip install "$WHEEL"
3849
3950 - name : Run linter
4051 run : |
6778 - name : Validate distribution metadata
6879 run : twine check dist/*
6980
81+ - name : Build wheel
82+ run : python -m build --wheel
83+
7084 - name : Install package from wheel
7185 run : |
72- python -m pip install dist/*.whl
86+ python -c "import glob,sys; w=glob.glob('dist/*.whl'); assert w, f'No wheel built. dist contains: {glob.glob(\"dist/*\")}'; print(w[0])"
87+ python -c "import glob; print(glob.glob('dist/*.whl')[0])" > wheel_path.txt
88+ python -m pip install "$(cat wheel_path.txt)"
89+ shell : bash
90+
7391
7492 - name : Test documentation generation
7593 run : |
0 commit comments