Skip to content

Merge pull request #221 from LSSTDESC/fix-mamba-fail #113

Merge pull request #221 from LSSTDESC/fix-mamba-fail

Merge pull request #221 from LSSTDESC/fix-mamba-fail #113

name: shear-meas-tests
on:
push:
branches:
- master
# turn this on to run for PRs
# pull_request: null
jobs:
shear-meas-tests:
name: shear-meas-tests
strategy:
matrix:
pyver: ["3.11"]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.pyver }}
channels: conda-forge
channel-priority: strict
show-channel-urls: true
- name: configure conda and install code
shell: bash -l {0}
run: |
conda config --set always_yes yes
conda install -q --file requirements.txt
conda install -q \
flake8 \
pytest \
fitsio \
meds \
ngmix
pip install --no-deps -e .
# for now we always pull the latest of these packages
pushd ..
git clone https://github.com/LSSTDESC/descwl_coadd.git
pushd descwl_coadd
pip install --no-deps -e .
popd
popd
pushd ..
git clone https://github.com/esheldon/metadetect.git
pushd metadetect
pip install --no-deps -e .
popd
popd
- name: fast test
shell: bash -l {0}
run: |
wget https://www.cosmo.bnl.gov/www/esheldon/data/catsim.tar.gz
tar xvfz catsim.tar.gz
export CATSIM_DIR=$(realpath catsim)
pytest -vvsx shear_meas_tests/test_shear_meas.py -k test_shear_meas[grid-500]
- name: slow test
if: ${{ success() && github.event_name == 'push' }}
shell: bash -l {0}
run: |
wget https://www.cosmo.bnl.gov/www/esheldon/data/catsim.tar.gz
tar xvfz catsim.tar.gz
export CATSIM_DIR=$(realpath catsim)
pytest -vvsx shear_meas_tests/test_shear_meas.py -k test_shear_meas[random-2500]