Skip to content

Commit

Permalink
Remove temporary changes from pytest runs in CI (#570)
Browse files Browse the repository at this point in the history
* Remove temporary changes from pytest runs

* Update required svmbir version

* Clean up

* Force cache reset

* Attempt to resolve pytest failure

* Revert to conda install of svmbir
  • Loading branch information
bwohlberg authored Nov 8, 2024
1 parent bd581c1 commit 6ce6a15
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 14 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/pytest_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
path: ${{ env.CONDA }}/envs
key: conda-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev_requirements.txt') }}-${{ env.CACHE_NUMBER }}
env:
CACHE_NUMBER: 1 # Increase this value to force cache reset
CACHE_NUMBER: 0 # Increase this value to force cache reset
id: cache
# Display environment details
- name: Display environment details
Expand All @@ -57,15 +57,13 @@ jobs:
pip install pytest-split
pip install -r requirements.txt
pip install -r dev_requirements.txt
# Temporarily disabled due to svmbir failure with numpy 2.x under Python 3.12
# conda install -c conda-forge svmbir>=0.3.3
conda install -c astra-toolbox astra-toolbox
conda install -c conda-forge pyyaml
pip install --upgrade --force-reinstall scipy>=1.6.0 # Temporary fix for GLIBCXX_3.4.30 not found in conda forge version
pip install bm3d>=4.0.0
pip install bm4d>=4.0.0
pip install "ray[tune]>=2.5.0"
pip install hyperopt
conda install -c conda-forge svmbir>=0.4.0
conda install -c astra-toolbox astra-toolbox
conda install -c conda-forge pyyaml
# Install package to be tested
- name: Install package to be tested
run: pip install -e .
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/pytest_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
path: ${{ env.CONDA }}/envs
key: conda-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev_requirements.txt') }}-${{ env.CACHE_NUMBER }}
env:
CACHE_NUMBER: 1 # Increase this value to force cache reset
CACHE_NUMBER: 0 # Increase this value to force cache reset
id: cache
# Display environment details
- name: Display environment details
Expand All @@ -60,15 +60,13 @@ jobs:
pip install pytest-split
pip install -r requirements.txt
pip install -r dev_requirements.txt
# svmbir install temporarily disabled due to import errors
#conda install -c conda-forge svmbir>=0.3.3
conda install -c conda-forge astra-toolbox
conda install -c conda-forge pyyaml
pip install --upgrade --force-reinstall scipy>=1.6.0 # Temporary fix for GLIBCXX_3.4.30 not found in conda forge version
pip install bm3d>=4.0.0
pip install bm4d>=4.2.2
pip install bm3d>=4.0.0
pip install "ray[tune]>=2.5.0"
pip install hyperopt
conda install -c conda-forge svmbir>=0.4.0
conda install -c conda-forge astra-toolbox
conda install -c conda-forge pyyaml
# Install package to be tested
- name: Install package to be tested
run: pip install -e .
Expand Down
2 changes: 1 addition & 1 deletion examples/examples_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-r ../requirements.txt
colour_demosaicing
svmbir>=0.3.3
svmbir>=0.4.0
astra-toolbox
xdesign>=0.5.5
ray[tune,train]>=2.5.0
Expand Down

0 comments on commit 6ce6a15

Please sign in to comment.