diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 782b6e0a3..974147ed3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -72,6 +72,11 @@ jobs: - name: Install scikit-learn ${{ matrix.scikit-learn }} run: | pip install scikit-learn==${{ matrix.scikit-learn }} + - name: Install numpy for Python 3.8 + # Python 3.8 & scikit-learn<0.24 requires numpy<=1.23.5 + if: ${{ matrix.python-version == '3.8' && contains(fromJSON('["0.23.1", "0.22.2", "0.21.2"]'), matrix.scikit-learn) }} + run: | + pip install numpy==1.23.5 - name: Install scipy ${{ matrix.scipy }} if: ${{ matrix.scipy }} run: | @@ -105,7 +110,7 @@ jobs: fi - name: Upload coverage if: matrix.code-cov && always() - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: files: coverage.xml fail_ci_if_error: true