Skip to content

Commit

Permalink
Merge pull request #128 from PeterJCLaw/pytest-xdist
Browse files Browse the repository at this point in the history
Use pytest-xdist to speed up CI
  • Loading branch information
alexmojaki committed Oct 27, 2023
2 parents ffb885b + 3302687 commit 5252972
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .coveragerc
@@ -0,0 +1,3 @@
[run]
branch = True
include = asttokens/*
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Expand Up @@ -83,7 +83,7 @@ jobs:

- name: Test with pytest
run: |
coverage run --branch --include='asttokens/*' -m pytest --junitxml=./rspec.xml
pytest --cov -n auto --junitxml=./rspec.xml
coverage report -m
- name: Collect coverage results
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Expand Up @@ -47,6 +47,8 @@ test =
astroid >=1, <2; python_version < "3"
astroid >=2, <4; python_version >= "3"
pytest
pytest-cov
pytest-xdist

[options.package_data]
asttokens = py.typed
Expand Down

0 comments on commit 5252972

Please sign in to comment.