Skip to content

Commit

Permalink
2 workflows re install
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasK committed Oct 4, 2023
1 parent 95ee1cf commit 99037f1
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 13 deletions.
48 changes: 40 additions & 8 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
environment-file: atlasenv.yml
environment-name: atlasenv
# persist on the same month.
cache-environment-key: environment-${{ steps.date.outputs.date }}
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
cache-environment-key: atlasenv-${{ steps.date.outputs.date }}


- name: Install atlas
run: |
Expand All @@ -46,14 +46,46 @@ jobs:

- name: Test init many samples
run: ./test/test_init_many_samples.sh

# - name: Cache atlas instalation
# uses: actions/cache@v2
# env:
# cache-name: cache-atlas
# with:
# # npm cache files are stored in `~/.npm` on Linux/macOS
# path: ~/.npm
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-build-${{ env.cache-name }}-
# ${{ runner.os }}-build-
# ${{ runner.os }}-

# full-test:
# runs-on: ubuntu-latest
# needs: build-and-dryrun
# strategy:
# max-parallel: 1
full-test:
runs-on: ubuntu-latest
needs: build-and-dryrun
strategy:
max-parallel: 1
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
# persist on the same month.
cache-environment-key: atlasenv-


- name: Install atlas
run: |
python -m pip install . --no-deps -vv
atlas --help
# steps:
- name: Clone Example Data Repository
run: git clone https://github.com/metagenome-atlas/example_data.git

Expand Down
10 changes: 5 additions & 5 deletions test/test_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ set -exuo pipefail

atlas --version

# get test reads
#wget https://zenodo.org/record/3992790/files/test_reads.tar.gz
#tar -xzf test_reads.tar.gz
get test reads
wget https://zenodo.org/record/3992790/files/test_reads.tar.gz
tar -xzf test_reads.tar.gz


databaseDir="databases"
WD='test_ci'
reads_dir="example_data/reads/test"
reads_dir="test_reads" #"example_data/reads/test"


rm -f $WD/samples.tsv
#
atlas init --db-dir --interleaved-fastq $databaseDir -w $WD $reads_dir
atlas init $reads_dir --db-dir $databaseDir -w $WD #--interleaved-fastq

atlas run None screen -w $WD qc $@

Expand Down

0 comments on commit 99037f1

Please sign in to comment.