Skip to content

Commit d2d9ec3

Browse files
committed
Make github CI tests run in parallel
1 parent bbb8371 commit d2d9ec3

File tree

1 file changed

+40
-4
lines changed

1 file changed

+40
-4
lines changed

.github/workflows/run_tests.yml

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313
contents: read
1414

1515
jobs:
16-
build:
16+
lint:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v3
@@ -23,9 +23,6 @@ jobs:
2323
with:
2424
python-version: "3.10"
2525

26-
- name: Install zsh
27-
run: sudo apt-get update; sudo apt-get install -y zsh
28-
2926
- name: Install dependencies
3027
run: |
3128
python3.10 -m venv .venv
@@ -40,13 +37,52 @@ jobs:
4037
python -m black --config pyproject.toml --check .
4138
python -m mypy --config-file pyproject.toml
4239
40+
test-bash:
41+
runs-on: ubuntu-latest
42+
needs: lint
43+
steps:
44+
- uses: actions/checkout@v3
45+
46+
- name: Set up Python 3.10
47+
uses: actions/setup-python@v3
48+
with:
49+
python-version: "3.10"
50+
51+
- name: Install dependencies
52+
run: |
53+
python3.10 -m venv .venv
54+
. .venv/bin/activate
55+
python -m pip install --require-virtualenv --upgrade pip
56+
python -m pip install --require-virtualenv -r dev-requirements.txt
57+
4358
- name: Test with pytest (bash)
4459
run: |
4560
export SHELL="/usr/bin/bash"
4661
. .venv/bin/activate
4762
python -m pytest -n auto .
4863
shell: /usr/bin/bash -e {0}
4964

65+
test-zsh:
66+
runs-on: ubuntu-latest
67+
needs: lint
68+
steps:
69+
- uses: actions/checkout@v3
70+
71+
- name: Set up Python 3.10
72+
uses: actions/setup-python@v3
73+
with:
74+
python-version: "3.10"
75+
76+
- name: Install zsh
77+
run: sudo apt-get update; sudo apt-get install -y zsh
78+
79+
- name: Install dependencies
80+
run: |
81+
python3.10 -m venv .venv
82+
. .venv/bin/activate
83+
python -m pip install --require-virtualenv --upgrade pip
84+
python -m pip install --require-virtualenv -r dev-requirements.txt
85+
5086
- name: Test with pytest (zsh)
5187
run: |
5288
export SHELL="/usr/bin/zsh"

0 commit comments

Comments
 (0)