Skip to content

Commit

Permalink
[ci] Run tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Dec 20, 2022
1 parent 956d9d2 commit 5086960
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ omit =
/*/__init__.py
/setup.py
/*/migrations/*
source = openwisp_ipam
parallel = true
concurrency = multiprocessing
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ jobs:

- name: Tests
run: |
coverage run --source=openwisp_ipam runtests.py
# SAMPLE tests do not influence coverage, so we can speed up tests with --parallel
SAMPLE_APP=1 ./runtests.py --parallel --keepdb
coverage run ./runtests.py --parallel
SAMPLE_APP=1 coverage run ./runtests.py --parallel
coverage combine
- name: Upload Coverage
run: coveralls --service=github
Expand Down

0 comments on commit 5086960

Please sign in to comment.