Skip to content

Conversation

@cvanelteren
Copy link
Collaborator

No description provided.

@beckermr
Copy link
Collaborator

The second call to pytest is still failing. IDK why.

@beckermr
Copy link
Collaborator

I think I got it...

@cvanelteren
Copy link
Collaborator Author

Yeah not sure if that second tag is necessary, but 🤞

@beckermr
Copy link
Collaborator

And I give up. Sorry for the noise...

@cvanelteren
Copy link
Collaborator Author

hmm strange let me give it a crack.

@beckermr
Copy link
Collaborator

Maybe the rc stuff needs to be in a file and not just a string on the command line?

@cvanelteren
Copy link
Collaborator Author

I am wondering if the checkout erases the files. Locally that command runs form me.

@cvanelteren cvanelteren force-pushed the pytest-ultraplot-corrected branch from 6934edd to e6d28c8 Compare January 30, 2025 13:43
@beckermr
Copy link
Collaborator

yeah this command prints

% python -c "import ultraplot as plt; print(plt.config.Configurator())"
abc: False
autoformat: True
borders: False
cmap: Fire
coast: False
cycle: colorblind
edgefix: True
grid: True
gridminor: False
inlineformat: retina
innerborders: False
lakes: False
land: False
margin: 0.05
negcolor: blue7
ocean: False
poscolor: red7
reso: lo
rivers: False
style: None
unitformat: L
...

which doesn't match what the docs expect.

@cvanelteren
Copy link
Collaborator Author

Seems to be working now!

@cvanelteren
Copy link
Collaborator Author

Look at all that green ;-)

@cvanelteren cvanelteren requested a review from beckermr January 30, 2025 13:51
@cvanelteren
Copy link
Collaborator Author

woop woop! 🥳

@cvanelteren cvanelteren requested a review from beckermr January 30, 2025 15:06
Copy link
Collaborator

@beckermr beckermr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more item. We need to test that this fails if we change something. For example, let's push a simple style change to this PR, ensure the tests fail, and then back that change out.

@cvanelteren
Copy link
Collaborator Author

Smart! With backing out you mean just a tmp commit like here now right?

@cvanelteren cvanelteren changed the title Second attempt Adding pytest-mpl to ultraplot workflow Jan 30, 2025
@cvanelteren
Copy link
Collaborator Author

looks good :)

@cvanelteren cvanelteren requested a review from beckermr January 30, 2025 16:12
Copy link
Collaborator

@beckermr beckermr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow doesn't appear to upload results images in the upload step. I assume we'd want this?

See here: https://github.com/Ultraplot/ultraplot/actions/runs/13055908903/job/36426869444

Co-authored-by: Matthew R. Becker <beckermr@users.noreply.github.com>
@beckermr
Copy link
Collaborator

We have to swallow the failure in the job step and then reraise it in GHA. I can look up how to do this as I have done it in the past.

@beckermr
Copy link
Collaborator

@cvanelteren
Copy link
Collaborator Author

image
cool this works!

@cvanelteren
Copy link
Collaborator Author

It is bit odd that we have to look at the "succesful" part of the test, but happy that we can test these baselines now 😄

Copy link
Collaborator

@beckermr beckermr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huzzah indeed! LGTM and thanks for the hard work here!

@beckermr beckermr enabled auto-merge (squash) January 30, 2025 20:13
@beckermr beckermr merged commit 258561e into Ultraplot:main Jan 30, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants