From 510c03b605e812249c4e679af4dcd79099049e5b Mon Sep 17 00:00:00 2001 From: Richard Baltrusch Date: Sat, 22 Jun 2024 21:12:51 +0200 Subject: [PATCH] Make scipy installs more deterministic Fixes scipy version to 1.10.1 for python 3.8 and lower. Adds apt-get update before apt-get to avoid failures. --- .github/workflows/pytest-unit-tests.yml | 3 ++- requirements.txt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pytest-unit-tests.yml b/.github/workflows/pytest-unit-tests.yml index 81caa10..ce2add7 100644 --- a/.github/workflows/pytest-unit-tests.yml +++ b/.github/workflows/pytest-unit-tests.yml @@ -26,6 +26,7 @@ jobs: - name: Test with pytest working-directory: tests run: | - sudo apt install libopenblas-dev # scipy + sudo apt-get update + sudo apt-get install libopenblas-dev # scipy pip install -r requirements.txt pytest . diff --git a/requirements.txt b/requirements.txt index 7a3b2d9..6d181f1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ music21==8.1.0 -scipy==1.13.0 +scipy==1.10.1; python_version < '3.9' +scipy==1.13.0; python_version >= '3.9'