Skip to content

Commit

Permalink
Add a build git action
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Mar 25, 2022
1 parent 4aa0643 commit b2ac8de
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yaml
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

0 comments on commit b2ac8de

Please sign in to comment.