Skip to content

Commit

Permalink
small upds, allow spaces in path
Browse files Browse the repository at this point in the history
  • Loading branch information
savfod committed Sep 5, 2024
1 parent 5296d37 commit 91542f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# action.yml
name: 'Run tests'
name: 'Tests'

on:
# Triggers the workflow on push or pull request events but only for the "main" branch
Expand All @@ -25,8 +25,8 @@ jobs:
entrypoint: bash
args: >
-c "
cd /github/workspace &&
pip install pytest --target /tmp &&
PYTHONPATH=/tmp python -m pytest test -m "not slow"
PYTHONPATH=/tmp python -m pytest test --durations=0
cd /github/workspace
&& pip install pytest --target /tmp
&& PYTHONPATH=/tmp python -m pytest test -m "not slow"
&& PYTHONPATH=/tmp python -m pytest test --durations=0
"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ mkdir -p results

# running UnPaSt with default parameters and example data
command="python run_unpast.py --exprs test/scenario_B500.exprs.tsv.gz --basename results/scenario_B500"
docker run -u $(id -u):$(id -g) -v $(pwd):/data --entrypoint bash freddsle/unpast -c "cd /data && $command"
docker run -u $(id -u):$(id -g) -v "$(pwd)":/data --entrypoint bash freddsle/unpast -c "cd /data && $command"
```


Expand Down
2 changes: 1 addition & 1 deletion test/test_run_unpast.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
TEST_DIR = os.path.dirname(__file__)
RESULTS_DIR = os.path.join(TEST_DIR, "results")
if not os.access(RESULTS_DIR, os.W_OK):
# repo dir is currently read-only during github-actions testing
# repo dir is currently read-only during the tesging stage in github-action
RESULTS_DIR = "/tmp/unpast/results"
REFERENCE_OUTPUT_DIR = os.path.join(TEST_DIR, "test_reference_output")

Expand Down

0 comments on commit 91542f9

Please sign in to comment.