-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from LSSTDESC/setup_py_tests
Update unit tests for the new code installed via setup.py
- Loading branch information
Showing
117 changed files
with
1,024 additions
and
581 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: imSim CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- releases/* | ||
|
||
pull_request: | ||
branches: | ||
- main | ||
- releases/* | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
# For now, just ubuntu, 3.8. Can add more later. | ||
os: [ ubuntu-latest ] | ||
py: [ 3.8 ] | ||
CC: [ gcc ] | ||
CXX: [ g++ ] | ||
|
||
defaults: | ||
run: | ||
# cf. https://github.com/conda-incubator/setup-miniconda#important | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup conda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: stack | ||
python-version: 3.8 | ||
condarc-file: etc/.condarc | ||
|
||
- name: Install conda deps | ||
run: | | ||
conda info | ||
conda list | ||
conda install -y mamba | ||
mamba install -y --file conda_requirements.txt | ||
conda info | ||
conda list | ||
- name: Install pip deps | ||
run: | | ||
# We need to get batoid onto conda, but for now, this is a separate step. | ||
pip install batoid | ||
conda info | ||
conda list | ||
- name: Install imSim | ||
run: | ||
pip install . | ||
|
||
- name: Install test deps | ||
run: | ||
conda install -y pytest nose | ||
|
||
- name: Run tests | ||
run: | | ||
cd tests | ||
# We're working towards getting all the tests working, but so far these are | ||
# the ones that work withe the pip installation. | ||
pytest test_FWHMgeom.py test_atmPSF.py test_batoid_wcs.py test_cosmic_rays.py test_fopen.py test_instcat_parser.py test_optical_zernikes.py test_psf.py test_tree_rings.py test_trimmer.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# conda install --file conda_requirements should install all required dependencies of imSim. | ||
|
||
stackvana>=0.2021.30 | ||
galsim>=2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
channels: | ||
- conda-forge | ||
- defaults | ||
ssl_verify: true | ||
channel_priority: strict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.