-
Notifications
You must be signed in to change notification settings - Fork 31
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
GitHub actions #465
Changes from 51 commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
9898495
Create main.yml
kwcantrell db38d73
test push
kwcantrell c721bfb
Update main.yml
kwcantrell 3e9409d
Update main.yml
kwcantrell fcc7ee8
Update main.yml
kwcantrell aed6df2
Update main.yml
kwcantrell 1f8b0d7
Update main.yml
kwcantrell e5b11a0
Update main.yml
kwcantrell d101baf
Update main.yml
kwcantrell 33f2092
Update main.yml
kwcantrell 8243616
Update main.yml
kwcantrell b7d9f64
Update .travis.yml
kwcantrell 38289bc
Update main.yml
kwcantrell 7a43177
Update main.yml
kwcantrell 64025ab
Update main.yml
kwcantrell 47f7cca
Update main.yml
kwcantrell 067c554
Update main.yml
kwcantrell 3164c3d
Update main.yml
kwcantrell 9bbe87f
Update main.yml
kwcantrell 2e5d105
Update main.yml
kwcantrell 89a455a
Merge pull request #56 from kwcantrell/github-actions
kwcantrell 45a214b
Create update-docs.yml
kwcantrell 712dde8
Update main.yml
kwcantrell db89327
checkpoint
kwcantrell 473bdcf
updated github action
kwcantrell 4cfcc48
test
kwcantrell 96bb2f6
Merge branch 'master' into github-actions
kwcantrell fb9336f
Update main.yml
kwcantrell 8f2b9e3
Update main.yml
kwcantrell 85a103c
Update main.yml
kwcantrell 30d403a
Update main.yml
kwcantrell 746d648
Update main.yml
kwcantrell f5c05dd
Update main.yml
kwcantrell 14952f8
Merge branch 'master' into github-actions
kwcantrell 6ed948d
test
kwcantrell a92b396
Merge branch 'github-actions' of https://github.com/kwcantrell/empres…
kwcantrell f5abaa7
test
kwcantrell cb86a83
test
kwcantrell 4df53e0
test
kwcantrell f0b35d3
trest
kwcantrell f900202
add tests
kwcantrell 5ad9923
test
kwcantrell 6c68a69
cleaned files
kwcantrell 05eec69
test
kwcantrell db97b71
removed docs
kwcantrell 998249c
removed docs update
kwcantrell b16623c
fixed style
kwcantrell 521fff6
added templates
kwcantrell 80ee20c
remove travis
kwcantrell d5036c8
update yml
kwcantrell 012c126
updated yml
kwcantrell 59a743a
added readme/contributing
kwcantrell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,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 | ||
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}}/ |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why 2020.6?
There was a problem hiding this comment.
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.