René's URL Explorer Experiment


Title: Add pytest-mpl image comparison tests and update CI workflow by lukelbd · Pull Request #413 · proplot-dev/proplot · GitHub

Open Graph Title: Add pytest-mpl image comparison tests and update CI workflow by lukelbd · Pull Request #413 · proplot-dev/proplot

X Title: Add pytest-mpl image comparison tests and update CI workflow by lukelbd · Pull Request #413 · proplot-dev/proplot

Description: This will finally add robust image comparison testing to proplot using matplotlib/pytest-mpl. Inside tests, I declare several functions developed from my own ad hoc jupyter notebook tests. These will be automatically detected + run by pytest, with image comparisons carried out by pytest-mpl. Further, inside tests/test_docs.py, I dynamically create testing functions from the rst-style python files in docs using jupytext, so that pytest-mpl can perform image comparisons on the documentation examples alongside the other testing files. So, the travis CI no longer compiles the documentation with make html -- instead, the existing readthedocs workflow does this, and it should also now be enabled for new pull requests (if not, will try to figure out soon). I also use a fork of pytest-mpl to support comparing arbitrary figures created by each testing function (i.e., without explicitly returning figure objects; see this branch). This work was done quite a while ago -- has just been sitting on my machine. Would like to merge it this spring.

Open Graph Description: This will finally add robust image comparison testing to proplot using matplotlib/pytest-mpl. Inside tests, I declare several functions developed from my own ad hoc jupyter notebook tests. These wi...

X Description: This will finally add robust image comparison testing to proplot using matplotlib/pytest-mpl. Inside tests, I declare several functions developed from my own ad hoc jupyter notebook tests. These wi...

Opengraph URL: https://github.com/proplot-dev/proplot/pull/413

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:58893eee-d3a9-b559-fa12-cbaf5ea9a380
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB696:5F4A4:2D642E7:3C96695:697ADBDD
html-safe-nonce97577b0a0178407f89e70115af5181a4737e0d94a0b6811dab963d758268c809
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjk2OjVGNEE0OjJENjQyRTc6M0M5NjY5NTo2OTdBREJERCIsInZpc2l0b3JfaWQiOiIzODI4OTY5NzkyODk5NTcwNjUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac99672f3ab6c6b262b06692ca358c0f92160ecd2383b51ecc17bb1b9195eaf0a7
hovercard-subject-tagpull_request:1290550724
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/proplot-dev/proplot/pull/413/files
twitter:imagehttps://avatars.githubusercontent.com/u/19657652?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19657652?s=400&v=4
og:image:altThis will finally add robust image comparison testing to proplot using matplotlib/pytest-mpl. Inside tests, I declare several functions developed from my own ad hoc jupyter notebook tests. These wi...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4af1ba0e68200258a80b0c5ab34f12a78bf48372a377a11e14eb668863c03b3a
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/proplot-dev/proplot git https://github.com/proplot-dev/proplot.git
octolytics-dimension-user_id108025793
octolytics-dimension-user_loginproplot-dev
octolytics-dimension-repository_id113293661
octolytics-dimension-repository_nwoproplot-dev/proplot
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id113293661
octolytics-dimension-repository_network_root_nwoproplot-dev/proplot
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release353b231ffaec2de44db15b2e82887804ede7c21e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fproplot-dev%2Fproplot%2Fpull%2F413%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fproplot-dev%2Fproplot%2Fpull%2F413%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=proplot-dev%2Fproplot
Reloadhttps://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files
Reloadhttps://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files
Reloadhttps://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files
proplot-dev https://patch-diff.githubusercontent.com/proplot-dev
proplothttps://patch-diff.githubusercontent.com/proplot-dev/proplot
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fproplot-dev%2Fproplot
Fork 97 https://patch-diff.githubusercontent.com/login?return_to=%2Fproplot-dev%2Fproplot
Star 1.1k https://patch-diff.githubusercontent.com/login?return_to=%2Fproplot-dev%2Fproplot
Code https://patch-diff.githubusercontent.com/proplot-dev/proplot
Issues 88 https://patch-diff.githubusercontent.com/proplot-dev/proplot/issues
Pull requests 7 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pulls
Discussions https://patch-diff.githubusercontent.com/proplot-dev/proplot/discussions
Actions https://patch-diff.githubusercontent.com/proplot-dev/proplot/actions
Projects 0 https://patch-diff.githubusercontent.com/proplot-dev/proplot/projects
Security 0 https://patch-diff.githubusercontent.com/proplot-dev/proplot/security
Insights https://patch-diff.githubusercontent.com/proplot-dev/proplot/pulse
Code https://patch-diff.githubusercontent.com/proplot-dev/proplot
Issues https://patch-diff.githubusercontent.com/proplot-dev/proplot/issues
Pull requests https://patch-diff.githubusercontent.com/proplot-dev/proplot/pulls
Discussions https://patch-diff.githubusercontent.com/proplot-dev/proplot/discussions
Actions https://patch-diff.githubusercontent.com/proplot-dev/proplot/actions
Projects https://patch-diff.githubusercontent.com/proplot-dev/proplot/projects
Security https://patch-diff.githubusercontent.com/proplot-dev/proplot/security
Insights https://patch-diff.githubusercontent.com/proplot-dev/proplot/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fproplot-dev%2Fproplot%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fproplot-dev%2Fproplot%2Fissues%2Fnew%2Fchoose
lukelbdhttps://patch-diff.githubusercontent.com/lukelbd
masterhttps://patch-diff.githubusercontent.com/proplot-dev/proplot/tree/master
add-testshttps://patch-diff.githubusercontent.com/proplot-dev/proplot/tree/add-tests
Conversation 2 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413
Commits 10 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/commits
Checks 0 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/checks
Files changed https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files
Please reload this pagehttps://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files
Add pytest-mpl image comparison tests and update CI workflow https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#top
Show all changes 10 commits https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files
97f1713 Add tests and ci instructions lukelbd Mar 26, 2023 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/commits/97f1713556cf236fc32e785885a7ce7896f4de11
5d099bd Try to fix micromamba setup issues lukelbd Mar 27, 2023 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/commits/5d099bd908c8e74169b5227499fb510338d3febd
f04b269 Attempt to fix micromamba config issues lukelbd Mar 27, 2023 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/commits/f04b26908689b31721ce666b42f306d35052b7b1
5fa219b Initialize micromamba shell before installing lukelbd Mar 27, 2023 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/commits/5fa219babaccceb6e36ac672153c91e891c0e945
6d5a0a3 Initialize micromamba shell before installing lukelbd Mar 27, 2023 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/commits/6d5a0a315f84562120568eafeb5d70cc77921ba1
1f124f8 Initialize micromamba shell before installing lukelbd Mar 27, 2023 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/commits/1f124f8deb834c8f45a5b71e62e0c9da2d936183
781895d Another attempt to fix micromamba issues lukelbd Mar 27, 2023 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/commits/781895d0b49fc8e2dc16c002ae5abc5649cd4db7
3e2299c Fix issue with duplicate branch/pr travis builds lukelbd Mar 27, 2023 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/commits/3e2299c71489bc98c6c40f52901c11f94f51b43d
a79e253 Another attempt to fix micromamba issues lukelbd Mar 27, 2023 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/commits/a79e253ee75d400d27a894fc8e3bafb7945a44fb
cd6881f Cleanup + initialize micromamba by sourcing bashrc lukelbd Mar 27, 2023 https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/commits/cd6881f14f03ba008511133f7ef3971e08480674
Clear filters https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files
Please reload this pagehttps://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files
Please reload this pagehttps://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files
.travis.yml https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-6ac3f79fc25d95cd1e3d51da53a4b21b939437392578a35ae8cd6d5366ca5485
environment.yml https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-8311f8c4f75bf01d23c7a9895db9bd33b3e91a9cf6694816d0c261b2ee273ebe
run-linter.sh https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-ca1b1ddc916eef88f8b41f9e05e8f80c9f1a63e50c8cf108db63b104f24d8cd9
test_1dplots.py https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-6cf6c19f5a6d5bc7a6663ea04d22f36cd6547efa60237cf1f5609734feac701e
test_2dplots.py https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-fa5f62e756eefd0bfde80616071cd6fb2d391a0ca115042311aee5dd23dec40c
test_axes.py https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-395b16d4aeffec98319748051435ac67e093d1ed867b9e753c200d8af1fba571
test_colorbar.py https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-b56156d61dd5c592bec3e91e0caf47997d12fe4999772525a65b2029a8c6e120
test_docs.py https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-f0e86930383603f2774a9826acbd283dc2339ce08c148d6c129237784f1872ef
test_format.py https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-1458434aade58fe79e9cb5bc34e0a4de856882fa574c00a7359e9b0088331821
test_integration.py https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-c3c65dc3541c0dd9e9325b0c5e32089710ee46b630d4b4c7447dcf806cccf9b5
test_journals.py https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-8cac1234526de2a95aca2cf3b8595550c52a3598f720731575cb123fa08a9dc3
test_legend.py https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-1e4c8900e6590c602c8c005ca18e10cd813de5897a0f71720d0a09a6c9105cda
test_projections.py https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-ac040352d292c0843d5d15fcc730992f276a23daf38355fc9f9c6f1492ac9c23
test_subplots.py https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-513a4541f552eeebba4c8f9cea63592d985dfbdac44289e0f6b649c8cb3a1e53
.travis.ymlhttps://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-6ac3f79fc25d95cd1e3d51da53a4b21b939437392578a35ae8cd6d5366ca5485
View file https://patch-diff.githubusercontent.com/proplot-dev/proplot/blob/cd6881f14f03ba008511133f7ef3971e08480674/.travis.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-6ac3f79fc25d95cd1e3d51da53a4b21b939437392578a35ae8cd6d5366ca5485
ci/environment.ymlhttps://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-8311f8c4f75bf01d23c7a9895db9bd33b3e91a9cf6694816d0c261b2ee273ebe
View file https://patch-diff.githubusercontent.com/proplot-dev/proplot/blob/cd6881f14f03ba008511133f7ef3971e08480674/ci/environment.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-8311f8c4f75bf01d23c7a9895db9bd33b3e91a9cf6694816d0c261b2ee273ebe
https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-8311f8c4f75bf01d23c7a9895db9bd33b3e91a9cf6694816d0c261b2ee273ebe
ci/run-linter.shhttps://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-ca1b1ddc916eef88f8b41f9e05e8f80c9f1a63e50c8cf108db63b104f24d8cd9
View file https://patch-diff.githubusercontent.com/proplot-dev/proplot/blob/cd6881f14f03ba008511133f7ef3971e08480674/ci/run-linter.sh
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-ca1b1ddc916eef88f8b41f9e05e8f80c9f1a63e50c8cf108db63b104f24d8cd9
https://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files#diff-ca1b1ddc916eef88f8b41f9e05e8f80c9f1a63e50c8cf108db63b104f24d8cd9
Please reload this pagehttps://patch-diff.githubusercontent.com/proplot-dev/proplot/pull/413/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.