From 76fbef2fe6ba6f219c97b38995c5490e76ed2b8b Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Thu, 21 May 2026 09:17:00 +0100 Subject: [PATCH] release.yml: skip PyAutoFit NSS tests in release_test_pypi pytest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `release_test_pypi` job installs each library from TestPyPI and runs `python3 -m pytest`. PyAutoFit's NSS tests (`test_autofit/non_linear/search/nest/nss/`) require the handley-lab blackjax fork and yallup/nss, which can't live in pyproject.toml's [nss] extra because PyPI rejects direct `git+https://` URLs in uploaded wheel metadata ("400 Can't have direct dependency"). These tests are exercised separately in PyAutoFit's own `unittest_nss` CI job (which installs the fork deps manually post-extras). Here we only exercise the TestPyPI-installable surface, so skip them. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a64bd3..df373bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -164,7 +164,16 @@ jobs: pip install pynufft==2025.1.1 pip install pytest pip install numba - python3 -m pytest + # PyAutoFit's NSS tests need the handley-lab blackjax fork + + # yallup/nss, which can't live in the [nss] extra because + # PyPI bans direct git+ URLs in uploaded wheels. They're tested + # separately in PyAutoFit's own unittest_nss job. Here we only + # exercise the TestPyPI-installable surface, so skip them. + if [ "${{ matrix.project.path }}" = "PyAutoFit" ]; then + python3 -m pytest --ignore=test_autofit/non_linear/search/nest/nss + else + python3 -m pytest + fi run_smoke_tests: runs-on: ubuntu-latest