diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 3a07c7c..6d0198c 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -1,11 +1,11 @@ -name: Run basic tests +name: Tests on: [push] jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 strategy: matrix: python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"] diff --git a/Readme.md b/Readme.md index 7264e26..63366ae 100644 --- a/Readme.md +++ b/Readme.md @@ -1,6 +1,8 @@ Distributed processing of a batch of tasks. =========================================== +[![Tests](https://github.com/flatironinstitute/disBatch/actions/workflows/tests.yaml/badge.svg)](https://github.com/flatironinstitute/disBatch/actions/workflows/tests.yaml) + ## TL;DR Create a file `Tasks`: diff --git a/tests/test_slurm/run.sh b/tests/test_slurm/run.sh index 2204e01..2e2784a 100755 --- a/tests/test_slurm/run.sh +++ b/tests/test_slurm/run.sh @@ -12,7 +12,7 @@ salloc -n 2 disBatch Tasks [[ -f A.txt && -f B.txt && -f C.txt ]] success=$? -cd - +cd - > /dev/null if [[ $success -eq 0 ]]; then echo "Slurm test passed." diff --git a/tests/test_ssh/run.sh b/tests/test_ssh/run.sh index 0872656..ac59e73 100755 --- a/tests/test_ssh/run.sh +++ b/tests/test_ssh/run.sh @@ -12,7 +12,7 @@ disBatch -s localhost:2 Tasks [[ -f A.txt && -f B.txt && -f C.txt ]] success=$? -cd - +cd - > /dev/null if [[ $success -eq 0 ]]; then echo "SSH test passed."