Skip to content

Commit

Permalink
split wsl tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fostiropoulos committed Nov 29, 2023
1 parent fe0ab0e commit 28d013c
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/wsl_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
- name: Test with pytest
run: |
conda activate test-env
make test docker_tag="ablator-test"
make test test_tag="--test-suite fast" docker_tag="ablator-test"
30 changes: 30 additions & 0 deletions .github/workflows/wsl_test_mp.yml
Original file line number Diff line number Diff line change
@@ -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"
30 changes: 30 additions & 0 deletions .github/workflows/wsl_test_remote.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 28d013c

Please sign in to comment.