Skip to content

Commit

Permalink
Activate env from script
Browse files Browse the repository at this point in the history
  • Loading branch information
dfornika committed Feb 8, 2024
1 parent e56e45a commit d0e3dbe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/scripts/simulate_reads.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/bash


source ${HOME}/.bashrc

eval "$(conda shell.bash hook)"

conda activate art

art_illumina \
--paired \
--in .github/data/assemblies/NC_000962.3.fa \
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
name: Pull Request
jobs:
test:
strategy:
matrix:
nextflow_version: [21.04, 23.10]
name: Run tests
runs-on: ubuntu-latest
steps:
Expand All @@ -21,7 +24,7 @@ jobs:
- name: Download Assemblies
run: bash .github/scripts/download_assemblies.sh
- name: Simulate Reads
run: conda init && source ~/.bashrc && conda activate art && bash ./github/scripts/simulate_reads.sh
run: bash ./github/scripts/simulate_reads.sh
- name: Upload Artifacts
uses: actions/upload-artifact@v4
if: always()
Expand Down

0 comments on commit d0e3dbe

Please sign in to comment.