-
Notifications
You must be signed in to change notification settings - Fork 26
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
Allow TMPDIR for tests #810
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #810 +/- ##
=======================================
Coverage 96.51% 96.51%
=======================================
Files 20 20
Lines 889 890 +1
=======================================
+ Hits 858 859 +1
Misses 31 31
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@wolfgangwalther is there a way to include nixos in the CI on github-actions? And the other thing, could you add newsfragment? |
That would be possible, sure, but I don't have the bandwidth to do that, sorry.
Not sure what I would write in a changelog about such a technical change in the tests. Nothing, probably. |
Hm, I can't find any template or anything on how those newsfragments should look like. I have never used towncrier (?). |
On NixOS, /tmp is not writeable and TMPDIR is set. Use that instead.
68526a3
to
7d36c31
Compare
Ah, found some in the git history. Like this? |
The chore in pr template shows the command to run to get a newsfragment :) And yes, something like this. And as for the test, no worries, hopefully I won't break anything in the future there ;) Question though, why you need to run mirakuru's tests on NixOS? Outside of it's CI? |
In NixOS we try to always run all packages' tests when building them. I think most distributions do the same. |
I'll have to remeber to switch to https://docs.pytest.org/en/stable/how-to/tmp_path.html in the future. |
Switched to tmp_path_factory #846 |
On NixOS, /tmp is not writeable and TMPDIR is set. Use that instead.
Failure log without this patch: https://hydra.nixos.org/build/275642339/nixlog/1