qutebrowser/.github
toofar 914227ca1c Set TMPDIR to RUNNER_TEMP on CI
The upload artifact action can't collect artifacts from /tmp/ in the test
runners. So now that we are writing the screenshots that we want to collect
later to the pytest `tmp_path` location we need to make sure that lives
somewhere the later actions can find it.

Pytest uses `tempfile.gettempdir()` to find the temp dir, and that respects a
number of environment variables including `TMPDIR`. This commits sets TMPDIR
to RUNNER_TEMP in in our test runners to make pytest uses the temp dir that's
mounted into the action containers.

For the docker based runners I can use the `env` map, but for the ubuntu ones
it didn't let me expand `${{ runner.temp }}` in the end map under `step`, so
I'm writing it to the env file for the runner instead. It failed to parse the
action yaml and said:

    > Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.temp

For the user part of the `pytest-of-$user` directory, I looked at the new
screenshot related test summary lines to see what the user was called.
`runner` on the ubuntu containers and `user` in our docker containers. Pytest
maintains the "pytest-current" symlink to the latest temp folder.
2024-08-18 12:42:35 +12:00
..
ISSUE_TEMPLATE Point to GitHub discussions feature 2020-06-17 09:34:12 +02:00
workflows Set TMPDIR to RUNNER_TEMP on CI 2024-08-18 12:42:35 +12:00
CODEOWNERS Make rcorre codeowners line recursive 2018-09-01 22:17:22 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2017-11-21 09:19:06 +01:00
CONTRIBUTING.asciidoc Move master branch references to main 2023-07-23 11:38:19 +02:00
FUNDING.yml Move master branch references to main 2023-07-23 11:38:19 +02:00
SECURITY.md doc: Improve security reporting guidelines 2022-12-13 14:24:32 +01:00
dependabot.yml Retry dependabot for GitHub Actions 2022-11-04 19:12:54 +01:00
pull_request_template.md Add basic PR template 2020-07-20 10:43:11 +02:00