-
Notifications
You must be signed in to change notification settings - Fork 10
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 #68 from biocore/gh-actions
Setup actions
- Loading branch information
Showing
1 changed file
with
48 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,48 @@ | ||
name: microsetta-admin CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: flake8 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
- name: install dependencies | ||
run: python -m pip install --upgrade pip | ||
- name: lint | ||
run: | | ||
pip install -q flake8 | ||
make lint | ||
build-and-test: | ||
needs: lint | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: 3.7 | ||
- name: Install dependencies | ||
shell: bash -l {0} | ||
run: | | ||
conda create --name test-microsetta-public python=3.7 | ||
conda activate test-microsetta-public | ||
conda install --yes --file ci/conda_requirements.txt | ||
pip install -r ci/pip_requirements.txt | ||
make install | ||
- name: Tests | ||
shell: bash -l {0} | ||
run: | | ||
conda activate test-microsetta-public | ||
make test |