8484
8585 # Easier if eigen is installed with apt-get, but on at least one system, check that
8686 # it gets downloaded and installed properly if it isn't installed.
87- if ${{ matrix.py != 3.7 }}; then sudo -H apt install -y libeigen3-dev; fi
87+ if ${{ matrix.py != 3.12 }}; then sudo -H apt install -y libeigen3-dev; fi
8888
8989 # Need this for the mpeg tests
9090 sudo -H apt install -y ffmpeg
@@ -125,7 +125,7 @@ jobs:
125125
126126 # Do these three first to clarify potential conflicts
127127 pip install -U numpy
128- pip install -U " setuptools<72"
128+ pip install -U setuptools
129129 pip install -U wheel
130130
131131 # Standard dependencies
@@ -137,13 +137,15 @@ jobs:
137137
138138 pip install -U matplotlib
139139
140- - name : Install astroplan
141- # astroplan isn't yet numpy 2.0 compatible. So don't install that on 3.9+.
142- # I'm also getting errors with starlink, which I think may be related to
143- # numpy 2.0.
144- if : (matrix.py == 3.8) || (matrix.py == 3.9)
145- run : |
146140 pip install -U astroplan
141+
142+ # Starlink doesn't seem to work anymore. Even with numpy 1.x, I'm getting
143+ # "ModuleNotFoundError: No module named 'numpy'" when building the wheel.
144+ # This after already installing numpy, so it should be there.
145+ # Revisit from time to time to see if they fix it.
146+ - name : Install starlink
147+ if : 0
148+ run : |
147149 pip install -U starlink-pyast
148150
149151 - name : Install CPython-only dependencies
@@ -166,7 +168,7 @@ jobs:
166168 FFTW_DIR=$FFTW_DIR pip install -vvv .
167169
168170 - name : Check download_cosmos only if it changed. (And only on 1 runner)
169- if : matrix.py == 3.7 && github.base_ref != ''
171+ if : matrix.py == 3.12 && github.base_ref != ''
170172 run : |
171173 git status
172174 git --no-pager log --graph --pretty=oneline --abbrev-commit | head -50
@@ -183,27 +185,20 @@ jobs:
183185 # Less confusing to include it explicitly.
184186
185187 - name : Check shared library
186- if : matrix.py == 3.8
188+ if : matrix.py == 3.12
187189 run : |
188- # On a few systems (arbitrarily py3.8 , where we also check mac and clang),
190+ # On a few systems (arbitrarily py3.12 , where we also check mac and clang),
189191 # check the shared library creation and link.
190- GALSIM_BUILD_SHARED=1 python setup.py install
192+ GALSIM_BUILD_SHARED=1 python setup.py build
191193
192194 # These directories/files should now exist.
193195 echo "Look for the shared library:"
194196 test -d build/shared_clib
195197 ls build/shared_clib
196198 ls build/shared_clib/libgalsim.*
197199
198- # For now, use `python setup.py test` to test linking to the shared library.
199- # We run some C++ tests there, and we use the shared library for linking.
200- # Caveats:
201- # 1. The C++ tests are not very comprehensive, so it won't catch all errors.
202- # 2. Apparently setup.py test is deprecated. I'm getting warnings when I run
203- # it that indicate it may go away at some point. So whenever that happens,
204- # we'll have to revisit this test to find another way to build and run
205- # the C++ tests.
206- GALSIM_TEST_PY=0 python setup.py test
200+ # Build and run the C++ test suite
201+ GALSIM_RUN_TEST=1 python setup.py build
207202
208203 - name : Upload coverage to codecov
209204 if : matrix.py != 'pypy-3.7'
0 commit comments