diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 2bbdd9551..ae669ee5c 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -23,6 +23,8 @@ jobs: Build: name: ${{ matrix.name }} Python ${{ matrix.python-version }} runs-on: ${{ matrix.os }} + env: + NPY_DISABLE_CPU_FEATURES: "AVX512F,AVX512_SKX,SSE4_2" strategy: fail-fast: false matrix: @@ -83,5 +85,16 @@ jobs: - name: Tests run: | + # 1. Create a clean virtual environment + python -m venv venv + source venv/bin/activate + + # 2. Install NumPy from source WITHIN the venv + pip install --no-binary numpy,scipy numpy scipy + + # 3. Install the project and test requirements + pip install . pip install -r python/tests/requirements.txt + + # 4. Run tests using the venv's nose2 nose2 -v --pretty-assert -s python/tests