Skip to content

Commit

Permalink
cache example data
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasK committed Oct 5, 2023
1 parent 188ad28 commit 66be119
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ jobs:
- name: Test init many samples
run: ./test/test_init_many_samples.sh



run-qc-and-assembly:
runs-on: ubuntu-latest
needs: build-and-dryrun
needs:
- build-and-dryrun
- download-example-data
env:
N_THREADS: 2
MEM: 3
Expand All @@ -73,11 +73,28 @@ jobs:
python -m pip install . --no-deps -vv
atlas --help
- name: cache example data
id: get-data
uses: actions/cache@v2
with:
path: test_reads.tar.gz
key: example-data

- name: Download test data
if: steps.get-data.outputs.cache-hit != 'true'
run: wget --quiet https://zenodo.org/record/3992790/files/test_reads.tar.gz

- name: cache example data
if: steps.get-data.outputs.cache-hit != 'true'
uses: actions/cache@v2
with:
path: test_reads.tar.gz
key: example-data

- name: extract data
run: |
wget https://zenodo.org/record/3992790/files/test_reads.tar.gz
tar -xzf test_reads.tar.gz
ls -l test_reads
- name: get conda envs
id: get-envs
Expand All @@ -87,25 +104,25 @@ jobs:
key: assembly-conda-envs

# - name: upack conda envs
# if: steps.get-enfs.outputs.cache-hit != 'true'
# if: steps.get-envs.outputs.cache-hit != 'true'
# run: tar -xzf assembly_conda_envs.tar.gz


- name: Init
run: |
atlas init "example_data/reads/test" --db-dir "$DATABASE_DIR" --threads "$N_THREADS" --working-dir wd
atlas init "test_reads" --db-dir "$DATABASE_DIR" --threads "$N_THREADS" --working-dir wd
- name: Install dependencies for assembly
if: steps.get-enfs.outputs.cache-hit != 'true'
- name: Install dependencies for qc and assembly
if: steps.get-envs.outputs.cache-hit != 'true'
run: atlas run assembly --conda-create-envs-only

# - name: compress conda envs
# run: |
# tar -czf assembly_conda_envs.tar.gz $DATABASE_DIR/conda_envs

- name: Cache conda envs
if: steps.get-enfs.outputs.cache-hit != 'true'
if: steps.get-envs.outputs.cache-hit != 'true'
uses: actions/cache@v2
with:
path: databases/conda_envs
Expand Down

0 comments on commit 66be119

Please sign in to comment.