diff --git a/.github/tmp-uv-overrides.txt b/.github/tmp-uv-overrides.txt new file mode 100644 index 0000000000..fac663f74f --- /dev/null +++ b/.github/tmp-uv-overrides.txt @@ -0,0 +1,2 @@ +# Temporary: jq has no cp315 Windows wheel and its sdist does not build on Windows. +jq; sys_platform != "win32" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b5d35358a7..d97e8863be 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -33,6 +33,7 @@ env: # Temporary: PyTorch publishes cp315 wheels only on its own index so far. UV_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu UV_INDEX_STRATEGY: unsafe-best-match + UV_OVERRIDE: ${{ github.workspace }}/.github/tmp-uv-overrides.txt # numpy's stubs require a 3.12+ interpreter, so type checking runs above the floor. # See [tool.mypy] in pyproject.toml. MYPY_PYTHON_VERSION: "3.12" @@ -153,6 +154,8 @@ jobs: echo "env=$(hatch env find test)" >> "$GITHUB_OUTPUT" - name: Run + env: + PYTEST_ADDOPTS: ${{ matrix.os == 'windows-latest' && '--ignore=test/components/converters/test_json.py' || '' }} run: hatch run test:unit - uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0