From 28d013c432d5527aeec66081837655200c2ab5f2 Mon Sep 17 00:00:00 2001 From: Iordanis Fostiropoulos Date: Wed, 29 Nov 2023 00:36:46 +0000 Subject: [PATCH] split wsl tests --- .github/workflows/wsl_test.yml | 2 +- .github/workflows/wsl_test_mp.yml | 30 +++++++++++++++++++++++++++ .github/workflows/wsl_test_remote.yml | 30 +++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/wsl_test_mp.yml create mode 100644 .github/workflows/wsl_test_remote.yml diff --git a/.github/workflows/wsl_test.yml b/.github/workflows/wsl_test.yml index 5ce17bc2..565af210 100644 --- a/.github/workflows/wsl_test.yml +++ b/.github/workflows/wsl_test.yml @@ -27,4 +27,4 @@ jobs: - name: Test with pytest run: | conda activate test-env - make test docker_tag="ablator-test" \ No newline at end of file + make test test_tag="--test-suite fast" docker_tag="ablator-test" diff --git a/.github/workflows/wsl_test_mp.yml b/.github/workflows/wsl_test_mp.yml new file mode 100644 index 00000000..fb870349 --- /dev/null +++ b/.github/workflows/wsl_test_mp.yml @@ -0,0 +1,30 @@ +name: wsl-test + +on: + push: + pull_request: + +jobs: + pytest: + runs-on: [self-hosted, wsl] + defaults: + run: + shell: bash -l {0} + steps: + - uses: actions/checkout@v3 + - name: Set up Conda Python 3.10 + run: | + conda remove -y --name test-env --all + conda create -y -n test-env python=3.10 + - name: Install dependencies + run: | + conda activate test-env + make install + - name: Make Docker + run: | + conda activate test-env + make docker docker_tag="ablator-test" + - name: Test with pytest + run: | + conda activate test-env + make test test_tag="--test-suite mp" docker_tag="ablator-test" diff --git a/.github/workflows/wsl_test_remote.yml b/.github/workflows/wsl_test_remote.yml new file mode 100644 index 00000000..5c5d6fef --- /dev/null +++ b/.github/workflows/wsl_test_remote.yml @@ -0,0 +1,30 @@ +name: wsl-test + +on: + push: + pull_request: + +jobs: + pytest: + runs-on: [self-hosted, wsl] + defaults: + run: + shell: bash -l {0} + steps: + - uses: actions/checkout@v3 + - name: Set up Conda Python 3.10 + run: | + conda remove -y --name test-env --all + conda create -y -n test-env python=3.10 + - name: Install dependencies + run: | + conda activate test-env + make install + - name: Make Docker + run: | + conda activate test-env + make docker docker_tag="ablator-test" + - name: Test with pytest + run: | + conda activate test-env + make test test_tag="--test-suite remote" docker_tag="ablator-test"