Closed oscargus closed 5 months ago
Are you able to share the workflow at all?
It's a bit of a nightmare to debug (both the problem itself and often the workflow setup.)
Sure! I created a PR https://github.com/apytypes/apytypes/pull/466
It is the "Stub and doc tests" https://github.com/apytypes/apytypes/actions/runs/9398262105/job/25883241120?pr=465
The purpose of the test is to automatically regenerate stub-files and then use diff-check to see that the committed ones are up-to-date.
Thanks!
Could you try using the branch fix-path
?
You can just do something like: - uses: nickcharlton/diff-check@fix-path
in your workflow.
I think I misread how PATH
is handled back when I first published it and there's a commit which simplifies how I was doing that and should fix it.
The new branch seems to work! Thanks!
Failing (diff): https://github.com/apytypes/apytypes/actions/runs/9466284454/job/26077616377 Passing (no diff): https://github.com/apytypes/apytypes/actions/runs/9466372377/job/26077906228?pr=466
Maybe one would like to use tee
instead of >>
so that one can see the changed file message in the workflow? (Minor thing, but as the change is in a Python file __init__.py
, the file name is rendered as init, is it possible to render the file names in backticks(?).)
Excellent, thanks for testing and providing those examples!
I've gone ahead and opened PRs for both of those ideas — looking at my shell history it seems like I tried to do something with tee
, but never managed it. I found an answer this time though, which is cool.
I haven't really tested those PRs I opened, but figured I'd just do it and test it tomorrow!
Found this seemingly very useful action, but when trying to run it I got:
so my interpretation is that
bin/diff-check
cannot be accessed from my workflow?