Skip to content

Commit 7516951

Browse files
committed
Split project install from test run in CI workflow to more easily see what takes time
1 parent 0f5319c commit 7516951

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,13 @@ jobs:
3030
with:
3131
python-version: ${{ matrix.python-version }}
3232

33+
- name: Install project & dependencies
34+
shell: bash
35+
run: pip install .[dev]
36+
3337
- name: Test
3438
shell: bash
35-
run: |
36-
set -uexo pipefail
37-
python -m venv venv
38-
source venv/bin/activate
39-
pip install .[dev]
40-
pytest ./test
39+
run: pytest ./test
4140

4241
test-windows:
4342
name: Test Windows
@@ -57,8 +56,10 @@ jobs:
5756
with:
5857
python-version: ${{ matrix.python-version }}
5958

59+
- name: Install project & dependencies
60+
shell: powershell
61+
run: pip install '.[dev]'
62+
6063
- name: Test
6164
shell: powershell
62-
run: |
63-
pip install '.[dev]'
64-
pytest ./test
65+
run: pytest ./test

0 commit comments

Comments
 (0)