Skip to content

Add pytest-xdist to improve CI speed #755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ jobs:
run: |
poetry install
- name: Run simulation_params tests
run: poetry run pytest -rA tests/simulation
run: poetry run pytest -n logical -rA tests/simulation
- name: Run flow360_params tests
run: poetry run pytest -rA --ignore tests/simulation
run: poetry run pytest -n logical -rA --ignore tests/simulation
45 changes: 37 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ numexpr = "^2.10.1"
sphinxcontrib-mermaid = {version="*", optional = true}
pylatex = "^1.4.2"
prettyprinttree = "^2.0.1"
pytest-xdist = {extras = ["psutil"], version = "^3.6.1"}


[tool.poetry.group.dev.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions tests/v1/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def test_om6_release_22_3_3_0_example():
def test_cylinder_example():
Cylinder2D.get_files()
assert os.path.exists(Cylinder2D.case_json)
assert os.path.exists(OM6wing.mesh_json)
assert os.path.exists(OM6wing.mesh_filename)
assert os.path.exists(Cylinder2D.mesh_json)
assert os.path.exists(Cylinder2D.mesh_filename)


def test_airplane_example():
Expand Down