-
Notifications
You must be signed in to change notification settings - Fork 10
74 lines (62 loc) · 1.92 KB
/
shear_meas_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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]