diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a8066ac7..1e3f3ac9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,6 +56,15 @@ jobs: pip install --no-build-isolation --no-deps -e . cd .. + - name: Install imSim + run: + pip install . + + - name: Install test deps + run: | + conda install -y pytest pytest-xdist + pip install pytest-durations + - name: Cache data id: cache-data uses: actions/cache@v4 @@ -73,34 +82,27 @@ jobs: curl https://s3df.slac.stanford.edu/groups/rubin/static/sim-data/rubin_sim_data/throughputs_2023_09_07.tgz | tar -C rubin_sim_data -xz curl https://s3df.slac.stanford.edu/groups/rubin/static/sim-data/sed_library/seds_170124.tar.gz | tar -C rubin_sim_data/sims_sed_library -xz - - name: Install imSim - run: - pip install . - - - name: Install test deps + - name: Run tests run: | - conda install -y pytest pytest-xdist - pip install pytest-durations - - # - name: Run tests - # run: | - # export RUBIN_SIM_DATA_DIR=`pwd`/rubin_sim_data - # eups list lsst_distrib - # galsim --version - # pytest --durations=10 -n auto + export RUBIN_SIM_DATA_DIR=`pwd`/rubin_sim_data + eups list lsst_distrib + galsim --version + pip list + conda list + pytest --durations=10 -n auto - # - name: Check example config files - # run: | - # echo $PWD - # ls /home/runner/work/imSim - # export IMSIM_HOME=/home/runner/work/imSim - # export RUBIN_SIM_DATA_DIR=`pwd`/rubin_sim_data - # export SIMS_SED_LIBRARY_DIR=`pwd`/rubin_sim_data/sims_sed_library - # # Just check that they haven't gotten stale and produce errors. - # cd examples - # galsim flat.yaml image.counts_per_pixel=500 - # galsim flat_with_sed.yaml image.counts_per_pixel=5 - # galsim imsim-user-instcat.yaml image.nobjects=10 - # galsim imsim-user-skycat.yaml image.nobjects=10 - # galsim imsim-user-instcat-comcam.yaml - # galsim imsim-user-skycat-comcam.yaml + - name: Check example config files + run: | + echo $PWD + ls /home/runner/work/imSim + export IMSIM_HOME=/home/runner/work/imSim + export RUBIN_SIM_DATA_DIR=`pwd`/rubin_sim_data + export SIMS_SED_LIBRARY_DIR=`pwd`/rubin_sim_data/sims_sed_library + # Just check that they haven't gotten stale and produce errors. + cd examples + galsim flat.yaml image.counts_per_pixel=500 + galsim flat_with_sed.yaml image.counts_per_pixel=5 + galsim imsim-user-instcat.yaml image.nobjects=10 + galsim imsim-user-skycat.yaml image.nobjects=10 + galsim imsim-user-instcat-comcam.yaml + galsim imsim-user-skycat-comcam.yaml