-
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.
Update install docs; switch to GH Actions (#235)
* REL: better, more formal conda install Installing pygraphviz with pip (but graphviz with conda) seems to break stuff. this fixes things (The README and environment.yml setup were taken from strainFlye, which is ... code that I wrote) * DEV/STY: Improve submodule introspection; style * MNT: improve py test cov reports * TST: switch from travis to gh actions Closes #214. I doubt that this will work perfectly, but let's see what goes wrong and fix accordingly * STY/DEV: fix py style; update gitignore * TST: fix Python CI (forgor to upd8 env name)
- Loading branch information
Showing
10 changed files
with
278 additions
and
55 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,35 @@ | ||
# Based on | ||
# https://github.com/fedarko/strainFlye/blob/main/.github/workflows/main.yml + | ||
# https://github.com/biocore/empress/blob/master/.github/workflows/main.yml | ||
name: MgSc JavaScript CI | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14] | ||
|
||
steps: | ||
|
||
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install MetagenomeScope's Node.js development dependencies | ||
run: npm install -g mocha-headless-chrome nyc [email protected] jshint | ||
|
||
- name: Lint and stylecheck the JS code | ||
run: make jsstylecheck | ||
|
||
- name: Run JS tests | ||
run: make jstest | ||
|
||
- name: Upload JS code coverage information to Codecov | ||
uses: codecov/codecov-action@v2 |
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,37 @@ | ||
# Based on | ||
# https://github.com/fedarko/strainFlye/blob/main/.github/workflows/main.yml | ||
name: MgSc Python CI | ||
on: [push, pull_request] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
python-version: [3.6] | ||
|
||
steps: | ||
|
||
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
# https://github.com/conda-incubator/setup-miniconda#example-3-other-options | ||
- name: Install conda dependencies | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
activate-environment: mgsc | ||
environment-file: environment.yml | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install MetagenomeScope (and its pip dependencies) | ||
run: conda run -n mgsc pip install -e .[dev] | ||
|
||
- name: Lint and stylecheck the Python code | ||
run: conda run -n mgsc make pystylecheck | ||
|
||
- name: Run Python tests | ||
run: conda run -n mgsc make pytest | ||
|
||
- name: Upload Python code coverage information to Codecov | ||
uses: codecov/codecov-action@v2 |
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
This file was deleted.
Oops, something went wrong.
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
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
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,12 @@ | ||
name: mgsc | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python = 3.6 | ||
- pip | ||
- numpy | ||
- graphviz | ||
# version 1.3 gives me errors when accessing bounding boxes sometimes: | ||
# github.com/pygraphviz/pygraphviz/issues/113#issuecomment-298631567 | ||
- pygraphviz >= 1.6 |
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
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,9 @@ | ||
aosdfi-scaffold 1 39949 1 W 66 1 39949 + | ||
aosdfi-scaffold 39950 49953 2 W -8 1 5003 - | ||
aosdfi-scaffold 49954 59955 3 W 6 1 10001 + | ||
aosdfi-scaffold 59956 64959 4 W 58 1 5003 + | ||
aosdfi-scaffold 64960 71522 5 W 94 1 6562 + | ||
aosdfi-scaffold 71523 76533 6 W 111 1 5010 + | ||
aosdfi-scaffold 76534 81583 7 W -44 1 5049 - | ||
lol 1 6360 1 W 84 1 6360 + | ||
lol 6361 11698 2 W -79 1 5337 - |
Oops, something went wrong.