-
Notifications
You must be signed in to change notification settings - Fork 8
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 #92 from lsst/lsst-dev
Enable GitHub Actions to run tests
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 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,44 @@ | ||
name: build_and_test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- lsst-dev | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build_and_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
python-version: 3.8 | ||
channels: conda-forge,defaults | ||
channel-priority: strict | ||
show-channel-urls: true | ||
|
||
- name: Install dependencies | ||
# Might be quicker to install rubin-env plus any necessary additions. | ||
shell: bash -l {0} | ||
run: | | ||
conda install -y -q numpy scipy matplotlib pandas llvmlite numba astropy photutils astroquery coloredlogs scikit-image h5py emcee tqdm schwimmbad iminuit coverage configparser coveralls pysynphot deprecated pyyaml nose | ||
- name: List installed packages | ||
shell: bash -l {0} | ||
run: | | ||
conda list | ||
pip list -v | ||
- name: Build and install | ||
shell: bash -l {0} | ||
run: | | ||
pip install -v -e . | ||
- name: Run tests | ||
shell: bash -l {0} | ||
run: | | ||
python setup.py nosetests |