Skip to content

Commit

Permalink
switch to modifying code at runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
lrauschning committed Dec 12, 2024
1 parent c2338b8 commit 582d111
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/run_test_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@
# hacky way to hopefully alias the calls
# normal alias does not seem to work in GitHub CI
# necessary, as the hacky git install does not install the CLI entrypoints
echo "#!/bin/bash python <(echo 'import syri.scripts.syri;syri.scripts.syri.main()')" > syri
chmod +x ./syri
echo "minimap2.py" > ./minimap2
chmod +x ./minimap2
PATH=$PATH:./
syri --version
minimap2
# run using source to preserve alias
source ./example/example_workflow.sh
#echo "python <(echo 'import syri.scripts.syri;syri.scripts.syri.main()')" > syri
#chmod +x ./syri
#echo "minimap2.py" > ./minimap2
#chmod +x ./minimap2
#PATH=$PATH:./
#syri --version
#minimap2
## run using source to preserve alias
#source ./example/example_workflow.sh

$CONDA/bin/conda install -c conda-forge -c bioconda "bioconda::minimap2"
$(tail -n -1 ./example/example_workflow.sh |\
sed -e 's/^syri/python <(echo "import syri.scripts.syri;syri.scripts.syri.main()")/' )
2 changes: 1 addition & 1 deletion .github/workflows/test_example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
python-version: "3.12"
- name: Install other tools using conda
run: |
$CONDA/bin/conda install -c conda-forge -c bioconda "minimap2"
$CONDA/bin/conda install -c conda-forge -c bioconda "bioconda::minimap2"
- name: Test example_run.sh
run: ./.github/workflows/run_test_example.sh
shell: bash

0 comments on commit 582d111

Please sign in to comment.