Skip to content

Commit f841b32

Browse files
committed
ci: use pytest-parallel to speed up
1 parent b13a9f4 commit f841b32

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: Run tests
6060
run: |
61-
pytest pins -m 'not fs_rsc and not skip_on_github' $PYTEST_OPTS
61+
pytest pins -m 'not fs_rsc and not skip_on_github' --workers 4 --tests-per-worker 1 $PYTEST_OPTS
6262
env:
6363
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
6464
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ README.md: README.Rmd
3030
--TagRemovePreprocessor.remove_input_tags='hide-cell' \
3131
--output $@
3232

33-
test:
34-
pytest
33+
test: test-most test-rsc
34+
35+
test-most:
36+
pytest pins -m "not fs_rsc" --workers 4 --tests-per-worker 1
37+
38+
test-rsc:
39+
pytest pins -m "fs_rsc"
3540

3641
docs-build:
3742
jb build --builder html docs

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ test =
5353
pytest
5454
pytest-cases
5555
pytest-dotenv
56+
pytest-parallel
5657
s3fs
5758
adlfs
5859
gcsfs

0 commit comments

Comments
 (0)