Skip to content

Commit

Permalink
update to DESI 24.4 versions; who is pulling in numpy 2.0?
Browse files Browse the repository at this point in the history
  • Loading branch information
dstndstn committed Jul 22, 2024
1 parent 275786c commit abb9e86
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
python-version: ['3.9'] # fuji+guadalupe, not ready for 3.10 yet
astropy-version: ['==5.0', '<5.1'] # fuji+guadalupe, latest
fitsio-version: ['==1.1.6', '<2'] # fuji+guadalupe, latest
numpy-version: ['<1.23'] # to keep asscalar, used by astropy
# DESI 24.4 release
python-version: ['3.10']
astropy-version: ['==6.0.1']
fitsio-version: ['==1.2.1']
numpy-version: ['==1.22.4']
env:
DESIUTIL_VERSION: 3.2.5
DESIMODEL_DATA: branches/test-0.19
Expand All @@ -39,23 +40,34 @@ jobs:
python -m pip install --upgrade pip setuptools wheel
python -m pip install pytest
python -m pip install git+https://github.com/desihub/desiutil.git@${DESIUTIL_VERSION}#egg=desiutil
echo "Step 2"
echo "Step 2" # -> no numpy
python -c "import numpy as x; print(x.__version__)" || echo "no numpy yet"
python -m pip install -U 'numpy${{ matrix.numpy-version }}'
echo "Step 3"
echo "Step 3" # -> 1.22.4
python -c "import numpy as x; print(x.__version__)" || echo "no numpy yet"
python -m pip install -U 'astropy${{ matrix.astropy-version }}'
echo "Step 4"
echo "Step 4" # -> 1.22.4
python -c "import numpy as x; print(x.__version__)" || echo "no numpy yet"
python -m pip cache remove fitsio
echo "Step 5"
echo "Step 5" # -> 1.22.4
python -c "import numpy as x; print(x.__version__)" || echo "no numpy yet"
python -m pip install --no-deps --force-reinstall --ignore-installed 'fitsio${{ matrix.fitsio-version }}'
echo "Step 6"
python -c "import numpy as x; print(x.__version__)" || echo "no numpy yet"
python -m pip install pyyaml requests scipy healpy matplotlib
echo "Step 7"
echo "Step 6" # -> 1.22.4
python -c "import numpy as x; print(x.__version__)" || echo "no numpy yet"
#
#python -m pip install pyyaml requests scipy healpy matplotlib
#echo "Step 7" # -> 2.0.1
#python -c "import numpy as x; print(x.__version__)" || echo "no numpy yet"
#
python -m pip install pyyaml requests
echo "Step 7a" && python -c "import numpy as x; print(x.__version__)" || echo "no numpy yet"
python -m pip install scipy
echo "Step 7b" && python -c "import numpy as x; print(x.__version__)" || echo "no numpy yet"
python -m pip install matplotlib
echo "Step 7c" && python -c "import numpy as x; print(x.__version__)" || echo "no numpy yet"
python -m pip install healpy
echo "Step 7d" && python -c "import numpy as x; print(x.__version__)" || echo "no numpy yet"
#
svn export https://desi.lbl.gov/svn/code/desimodel/${DESIMODEL_DATA}/data
# ADM grab the surveyops directory.
wget -e robots=off -r -np -nH --cut-dirs 7 https://data.desi.lbl.gov/public/edr/survey/ops/surveyops/tags/0.1/ops/
Expand Down

0 comments on commit abb9e86

Please sign in to comment.