Skip to content

Commit

Permalink
add genecatalog
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasK committed Oct 4, 2023
1 parent e98bb38 commit 188ad28
Showing 1 changed file with 70 additions and 34 deletions.
104 changes: 70 additions & 34 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,36 +48,10 @@ jobs:
run: ./test/test_init_many_samples.sh


test-qc:
runs-on: ubuntu-latest
needs: build-and-dryrun
strategy:
max-parallel: 1
env:
N_THREADS: 2
MEM: 3
DATABASE_DIR: databases

steps:
- name: Checkout
uses: actions/[email protected]

- uses: mamba-org/setup-micromamba@v1
with:
environment-file: atlasenv.yml
environment-name: atlasenv
cache-environment-key: atlasenv-


- name: Install atlas
run: |
python -m pip install . --no-deps -vv
atlas --help

qc_and_assembly:
run-qc-and-assembly:
runs-on: ubuntu-latest
needs: build-and-dryrun
env:
N_THREADS: 2
MEM: 3
Expand Down Expand Up @@ -133,8 +107,6 @@ jobs:
- name: Cache conda envs
if: steps.get-enfs.outputs.cache-hit != 'true'
uses: actions/cache@v2
env:
cache-name: assembly-conda-envs
with:
path: databases/conda_envs
key: assembly-conda-envs
Expand All @@ -158,16 +130,80 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: sample_logs
path: wd/Streptococcus/logs
path: wd/Sample1/logs


- name: Cache working dir
uses: actions/cache@v2
with:
path: wd
key: assembly-working-dir



run-genecatalog:
runs-on: ubuntu-latest
needs: run-qc-and-assembly
env:
N_THREADS: 2
MEM: 3

steps:
- name: Checkout
uses: actions/[email protected]


- uses: mamba-org/setup-micromamba@v1
with:
environment-file: atlasenv.yml
environment-name: atlasenv
cache-environment-key: atlasenv-


- name: install atlas
run: |
python -m pip install . --no-deps -vv
atlas --help
- name: get conda envs
id: get-genecatalog-envs
uses: actions/cache@v2
with:
path: databases/conda_envs
key: binning-conda-envs
restore-keys: |
assembly-conda-envs
- name: Restore working dir
uses: actions/cache@v2
with:
path: wd
key: assembly-working-dir



- name: dryrun assembly shold need nothing to be done
run: |
ls -l wd
atlas run assembly -n
- name: Test Genecatalog
run: |
atlas run genecatalog --resources mem=$MEM java_mem=$MEM --jobs=$N_THREADS --restart-times=2 --working-dir wd
- name: Store Logs
uses: actions/upload-artifact@v2
with:
name: logs
path: wd/logs

- name: Store Sample Logs
uses: actions/upload-artifact@v2
with:
name: sample_logs
path: wd/Sample1/logs




# full-test:
Expand Down Expand Up @@ -212,4 +248,4 @@ jobs:
# uses: actions/upload-artifact@v2
# with:
# name: sample_logs
# path: test_ci/Streptococcus/logs
# path: test_ci/Sample1/logs

0 comments on commit 188ad28

Please sign in to comment.