fix more numpy dtypes (#672) #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use pre-built docker containers to run our unit tests on different python versions. | |
name: Run Test Suite | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
py37: | |
name: Python 3.7 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- 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" test_py37 test_runner:py37 | |
- name: Test Documentation Build | |
run: docker run -v "$(pwd)":/home/toast test_runner:py37 /home/toast/docs/build_docs.sh | |
- name: Run Serial Tests | |
run: docker run -e MPI_DISABLE=1 test_runner:py37 python -c 'import toast.tests; toast.tests.run()' | |
- name: Run MPI Tests | |
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 | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- 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" test_py38 test_runner:py38 | |
- name: Test Documentation Build | |
run: docker run -v "$(pwd)":/home/toast test_runner:py38 /home/toast/docs/build_docs.sh | |
- name: Run Serial Tests | |
run: docker run -e MPI_DISABLE=1 test_runner:py38 python -c 'import toast.tests; toast.tests.run()' | |
- name: Run MPI Tests | |
run: docker run test_runner:py38 mpirun -np 2 python -c 'import toast.tests; toast.tests.run()' | |
py39: | |
name: Python 3.9 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Pull Dependency Image | |
run: docker pull hpc4cmb/toast-deps-py39:latest | |
- name: Compile | |
run: docker run -v "$(pwd)":/home/toast --name="test_py39" hpc4cmb/toast-deps-py39:latest /home/toast/platforms/install_test_runner.sh && docker commit -m "test runner" test_py39 test_runner:py39 | |
- name: Test Documentation Build | |
run: docker run -v "$(pwd)":/home/toast test_runner:py39 /home/toast/docs/build_docs.sh | |
- name: Run Serial Tests | |
run: docker run -e MPI_DISABLE=1 test_runner:py39 python -c 'import toast.tests; toast.tests.run()' | |
- name: Run MPI Tests | |
run: docker run test_runner:py39 mpirun -np 2 python -c 'import toast.tests; toast.tests.run()' |