Skip to content

Commit

Permalink
reorder ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jmeyers314 committed Jul 15, 2024
1 parent dd2db8b commit 0904538
Showing 1 changed file with 31 additions and 29 deletions.
60 changes: 31 additions & 29 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 0904538

Please sign in to comment.