-
Notifications
You must be signed in to change notification settings - Fork 222
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
Mark unit tests with @pytest.mark.benchmark part 1 #2911
Conversation
CodSpeed Performance ReportMerging #2911 will not alter performanceFalling back to comparing Summary
Benchmarks breakdown
|
93effdd
to
62503c0
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This reverts commit d7674c4.
Ok, have added
|
Ok, I'm seeing some slow benchmark tests taking >1min because we didn't download the cache, and there are lots of PytestReturnNotNoneWarnings because |
None of them are important, so no need to benchmark now.
Yes, it's very annoying. In the
OK to ignore it.
OK to ignore it. |
Yeah, it seems like we can use a remote file, e.g. |
Description of proposed changes
Follow-up to #2908, this is where we mark the unit tests for any PyGMT functions we want to benchmark with the
@pytest.mark.benchmark
decorator.See #2911 (comment) below on which tests have been marked for benchmarking. Will first prioritize PyGMT functions that use temporary files, or are commonly used ones. General discussion on which tests to mark can go in #2910.
Note: We have purposely not installed
pytest-mpl
inbenchmarks.yml
, so the benchmarks are ran without any image comparison. This allows for faster benchmark runs, and it also means we don't need to setupdvc
in the workflow.Part 1 of addressing #2910. Covers test functions from
test_geopandas
totest_xyz2grd
according to the list in #2910 (comment).Reminders
make format
andmake check
to make sure the code follows the style guide.doc/api/index.rst
.Slash Commands
You can write slash commands (
/command
) in the first line of a comment to performspecific operations. Supported slash commands are:
/format
: automatically format and lint the code/test-gmt-dev
: run full tests on the latest GMT development version