-
Notifications
You must be signed in to change notification settings - Fork 235
CI: Add pytest plugins pytest-xdist and pytest-rerunfailures #3193
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
Merged
Merged
Changes from 13 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
466bc0d
Add pytest-xdist and pytest-rerunfailures to environment.yml
seisman 485f9f7
Add pytest-xdist and pytest-rerunfailed to ci_tests.yaml
seisman 04f273f
Add option -n auto
seisman 1a49f0d
Add option --reruns 5
seisman 7d4ce18
Merge branch 'main' into pytest/xdist
seisman 20f2e71
Merge branch 'main' into pytest/xdist
seisman e98b9a1
Add pytest-xdist and pytest-rerunfailures to other workflows
seisman bcc55c8
Merge branch 'main' into pytest/xdist
seisman 943b68b
Merge branch 'main' into pytest/xdist
seisman 6c023b2
Merge branch 'main' into pytest/xdist
seisman 54a7c24
Merge branch 'main' into pytest/xdist
seisman 83f6d0c
Revert the changes in ci_doctests.yaml and ci_tests_legacy.yaml.
seisman 0c6cc85
Debug benchmarks
seisman 346e985
Update .github/workflows/benchmarks.yml
seisman b9b94e9
Merge branch 'main' into pytest/xdist
seisman 1ecec65
Merge branch 'main' into pytest/xdist
seisman fd36c6a
Merge branch 'main' into pytest/xdist
seisman e4e2ab9
Merge branch 'main' into pytest/xdist
seisman a2e85cd
Merge branch 'main' into pytest/xdist
seisman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -56,7 +56,8 @@ jobs: | |
| echo $CONDA/bin >> $GITHUB_PATH | ||
| conda install --solver=libmamba gmt=6.5.0 python=3.12 \ | ||
| numpy pandas xarray netCDF4 packaging \ | ||
| geopandas pyarrow pytest pytest-mpl | ||
| geopandas pyarrow \ | ||
| pytest pytest-mpl pytest-rerunfailures pytest-xdist | ||
| python -m pip install -U pytest-codspeed setuptools | ||
|
|
||
| # Download cached remote files (artifacts) from GitHub | ||
|
|
@@ -79,7 +80,9 @@ jobs: | |
| uses: CodSpeedHQ/[email protected] | ||
| with: | ||
| run: | | ||
| ls /usr/share/miniconda/share/proj | ||
| python -c "import pygmt; pygmt.show_versions()" | ||
| PYGMT_USE_EXTERNAL_DISPLAY="false" python -m pytest -r P --pyargs pygmt --codspeed | ||
| env: | ||
| GMT_LIBRARY_PATH: /usr/share/miniconda/lib/ | ||
| PROJ_LIB: /usr/share/miniconda/share/proj | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.