Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub actions #465

Merged
merged 52 commits into from
Dec 16, 2020
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
9898495
Create main.yml
kwcantrell Dec 7, 2020
db38d73
test push
kwcantrell Dec 7, 2020
c721bfb
Update main.yml
kwcantrell Dec 7, 2020
3e9409d
Update main.yml
kwcantrell Dec 7, 2020
fcc7ee8
Update main.yml
kwcantrell Dec 7, 2020
aed6df2
Update main.yml
kwcantrell Dec 7, 2020
1f8b0d7
Update main.yml
kwcantrell Dec 7, 2020
e5b11a0
Update main.yml
kwcantrell Dec 7, 2020
d101baf
Update main.yml
kwcantrell Dec 7, 2020
33f2092
Update main.yml
kwcantrell Dec 7, 2020
8243616
Update main.yml
kwcantrell Dec 7, 2020
b7d9f64
Update .travis.yml
kwcantrell Dec 7, 2020
38289bc
Update main.yml
kwcantrell Dec 7, 2020
7a43177
Update main.yml
kwcantrell Dec 7, 2020
64025ab
Update main.yml
kwcantrell Dec 7, 2020
47f7cca
Update main.yml
kwcantrell Dec 7, 2020
067c554
Update main.yml
kwcantrell Dec 7, 2020
3164c3d
Update main.yml
kwcantrell Dec 7, 2020
9bbe87f
Update main.yml
kwcantrell Dec 7, 2020
2e5d105
Update main.yml
kwcantrell Dec 7, 2020
89a455a
Merge pull request #56 from kwcantrell/github-actions
kwcantrell Dec 7, 2020
45a214b
Create update-docs.yml
kwcantrell Dec 7, 2020
712dde8
Update main.yml
kwcantrell Dec 7, 2020
db89327
checkpoint
kwcantrell Dec 10, 2020
473bdcf
updated github action
kwcantrell Dec 10, 2020
4cfcc48
test
kwcantrell Dec 10, 2020
96bb2f6
Merge branch 'master' into github-actions
kwcantrell Dec 10, 2020
fb9336f
Update main.yml
kwcantrell Dec 11, 2020
8f2b9e3
Update main.yml
kwcantrell Dec 11, 2020
85a103c
Update main.yml
kwcantrell Dec 11, 2020
30d403a
Update main.yml
kwcantrell Dec 11, 2020
746d648
Update main.yml
kwcantrell Dec 11, 2020
f5c05dd
Update main.yml
kwcantrell Dec 11, 2020
14952f8
Merge branch 'master' into github-actions
kwcantrell Dec 11, 2020
6ed948d
test
kwcantrell Dec 11, 2020
a92b396
Merge branch 'github-actions' of https://github.com/kwcantrell/empres…
kwcantrell Dec 11, 2020
f5abaa7
test
kwcantrell Dec 11, 2020
cb86a83
test
kwcantrell Dec 14, 2020
4df53e0
test
kwcantrell Dec 14, 2020
f0b35d3
trest
kwcantrell Dec 15, 2020
f900202
add tests
kwcantrell Dec 15, 2020
5ad9923
test
kwcantrell Dec 15, 2020
6c68a69
cleaned files
kwcantrell Dec 15, 2020
05eec69
test
kwcantrell Dec 15, 2020
db97b71
removed docs
kwcantrell Dec 15, 2020
998249c
removed docs update
kwcantrell Dec 15, 2020
b16623c
fixed style
kwcantrell Dec 15, 2020
521fff6
added templates
kwcantrell Dec 15, 2020
80ee20c
remove travis
kwcantrell Dec 15, 2020
d5036c8
update yml
kwcantrell Dec 15, 2020
012c126
updated yml
kwcantrell Dec 15, 2020
59a743a
added readme/contributing
kwcantrell Dec 16, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
name: Empress CI

# Controls when the action will run.
on:
# Triggers the workflow on pull request events but only on the master branch
pull_request:
branches: [ master ]

jobs:
# name of job
build:
# The type of runner that the job will run on (available options are window/macOS/linux)
runs-on: ubuntu-latest
# we can add more versions of node.js in the future
strategy:
matrix:
node-version: [14.x]

# used in McHelper (similar to TRAVIS_PULL_REQUEST variable)
env:
BRANCH_NUMBER: ${{ github.event.number }}

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# first grab branch from github
- uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0

- name: Set up Node.js enviroment
uses: actions/setup-node@v1
with:
node-version: 14

- name: Install Node.js modules
run: npm install -g qunit-puppeteer jshint [email protected]

- name: Install flake8
run: conda run -n base pip install flake8

- name: Run linters
run: |
conda run -n base make stylecheck

- name: Set up conda
uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: 3.6
conda-channels: anaconda, conda-forge

- name: Create Qiime enviroment
run: |
wget https://data.qiime2.org/distro/core/qiime2-2020.6-py36-linux-conda.yml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 2020.6?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was using the latest version (https://raw.githubusercontent.com/qiime2/environment-files/master/latest/staging/qiime2-latest-py36-linux-conda.yml) and it was working fine but all of a sudden it started to break the build and causing it to fail. So I switched to 2020.6 simply because that is the version I am using on my local machine.

conda env create -n qiime2-dev --file qiime2-2020.6-py36-linux-conda.yml

- name: Install Empress
run: |
conda run -n qiime2-dev pip uninstall emperor --yes
conda run -n qiime2-dev pip install -e .[all] --verbose
conda run -n qiime2-dev qiime dev refresh-cache

- name: Run tests
run: conda run -n qiime2-dev make test

- name: Check development script
run: |
conda run -n qiime2-dev ./tests/python/make-dev-page.py
conda run -n qiime2-dev ./tests/python/make-dev-page.py docs/moving-pictures/rooted-tree.qza docs/moving-pictures/table.qza docs/moving-pictures/sample_metadata.tsv docs/moving-pictures/taxonomy.qza
conda run -n qiime2-dev ./tests/python/make-dev-page.py docs/moving-pictures/rooted-tree.qza docs/moving-pictures/table.qza docs/moving-pictures/sample_metadata.tsv docs/moving-pictures/taxonomy.qza docs/moving-pictures/unweighted_unifrac_pcoa_results.qza --filter-extra-samples
conda run -n qiime2-dev ./tests/python/make-dev-page.py docs/moving-pictures/rooted-tree.qza docs/moving-pictures/table.qza docs/moving-pictures/sample_metadata.tsv docs/moving-pictures/taxonomy.qza docs/moving-pictures/biplot.qza --filter-extra-samples

# - name: Upload to McHelper
# run: |
# conda run -n qiime2-dev make docs
# conda run -n qiime2-dev curl -POST -F "files[]=@${PWD}/docs/moving-pictures/plain.qzv" -F "files[]=@${PWD}/docs/moving-pictures/just-fm.qzv" -F "files[]=@${PWD}/docs/moving-pictures/empress-tree.qzv" -F "files[]=@${PWD}/docs/moving-pictures/empire.qzv" -F "files[]=@${PWD}/docs/moving-pictures/empire-biplot.qzv" http://mchelper.ucsd.edu:8888/uploads/empress/${{env.BRANCH_NUMBER}}/
46 changes: 0 additions & 46 deletions .travis.yml

This file was deleted.