Skip to content

Commit

Permalink
Fix docker commit syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
tskisner committed May 16, 2020
1 parent 1465b9f commit c66ad50
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
- name: Pull Dependency Image
run: docker pull hpc4cmb/toast-deps-py35:latest
- name: Compile
run: docker run -v "$(pwd)":/home/toast --name="test_py35" hpc4cmb/toast-deps-py35:latest /home/toast/platforms/install_test_runner.sh && docker commit -m "test runner" hpc4cmb/toast-deps-py35:latest test_py35
run: docker run -v "$(pwd)":/home/toast --name="test_py35" hpc4cmb/toast-deps-py35:latest /home/toast/platforms/install_test_runner.sh && docker commit -m "test runner" test_py35 test_runner:py35
- name: Run Serial Tests
run: docker run test_py35 python -c 'import toast.tests; toast.tests.run()'
run: docker run test_runner:py35 python -c 'import toast.tests; toast.tests.run()'
- name: Run MPI Tests
run: docker run test_py35 mpirun -np 2 python -c 'import toast.tests; toast.tests.run()'
run: docker run test_runner:py35 mpirun -np 2 python -c 'import toast.tests; toast.tests.run()'
py36:
name: Python 3.6
runs-on: ubuntu-latest
Expand All @@ -32,11 +32,11 @@ jobs:
- name: Pull Dependency Image
run: docker pull hpc4cmb/toast-deps-py36:latest
- name: Compile
run: docker run -v "$(pwd)":/home/toast --name="test_py36" hpc4cmb/toast-deps-py36:latest /home/toast/platforms/install_test_runner.sh && docker commit -m "test runner" hpc4cmb/toast-deps-py36:latest test_py36
run: docker run -v "$(pwd)":/home/toast --name="test_py36" hpc4cmb/toast-deps-py36:latest /home/toast/platforms/install_test_runner.sh && docker commit -m "test runner" test_py36 test_runner:py36
- name: Run Serial Tests
run: docker run test_py36 python -c 'import toast.tests; toast.tests.run()'
run: docker run test_runner:py36 python -c 'import toast.tests; toast.tests.run()'
- name: Run MPI Tests
run: docker run test_py36 mpirun -np 2 python -c 'import toast.tests; toast.tests.run()'
run: docker run test_runner:py36 mpirun -np 2 python -c 'import toast.tests; toast.tests.run()'
py37:
name: Python 3.7
runs-on: ubuntu-latest
Expand All @@ -46,11 +46,11 @@ jobs:
- name: Pull Dependency Image
run: docker pull hpc4cmb/toast-deps-py37:latest
- name: Compile
run: docker run -v "$(pwd)":/home/toast --name="test_py37" hpc4cmb/toast-deps-py37:latest /home/toast/platforms/install_test_runner.sh && docker commit -m "test runner" hpc4cmb/toast-deps-py37:latest test_py37
run: docker run -v "$(pwd)":/home/toast --name="test_py37" hpc4cmb/toast-deps-py37:latest /home/toast/platforms/install_test_runner.sh && docker commit -m "test runner" test_py37 test_runner:py37
- name: Run Serial Tests
run: docker run test_py37 python -c 'import toast.tests; toast.tests.run()'
run: docker run test_runner:py37 python -c 'import toast.tests; toast.tests.run()'
- name: Run MPI Tests
run: docker run test_py37 mpirun -np 2 python -c 'import toast.tests; toast.tests.run()'
run: docker run test_runner:py37 mpirun -np 2 python -c 'import toast.tests; toast.tests.run()'
py38:
name: Python 3.8
runs-on: ubuntu-latest
Expand All @@ -60,8 +60,8 @@ jobs:
- name: Pull Dependency Image
run: docker pull hpc4cmb/toast-deps-py38:latest
- name: Compile
run: docker run -v "$(pwd)":/home/toast --name="test_py38" hpc4cmb/toast-deps-py38:latest /home/toast/platforms/install_test_runner.sh && docker commit -m "test runner" hpc4cmb/toast-deps-py38:latest test_py38
run: docker run -v "$(pwd)":/home/toast --name="test_py38" hpc4cmb/toast-deps-py38:latest /home/toast/platforms/install_test_runner.sh && docker commit -m "test runner" test_py38 test_runner:py38
- name: Run Serial Tests
run: docker run test_py38 python -c 'import toast.tests; toast.tests.run()'
run: docker run test_runner:py38 python -c 'import toast.tests; toast.tests.run()'
- name: Run MPI Tests
run: docker run test_py38 mpirun -np 2 python -c 'import toast.tests; toast.tests.run()'
run: docker run test_runner:py38 mpirun -np 2 python -c 'import toast.tests; toast.tests.run()'

0 comments on commit c66ad50

Please sign in to comment.