Skip to content

Artefact upload in CI pipelines #81

Answered by nicoddemus
renefritze asked this question in General
Discussion options

You must be logged in to vote

That basedir comes from the builtin tmpdir plugin, so it can be accessed through config._tmp_path_factory.getbasetemp() from some hook (for example pytest_sessionfinish, through session.config). You could implement pytest_sessionfinish() in your root conftest file and upload the files you need programatically.

https://github.com/pytest-dev/pytest/blob/main/src/_pytest/tmpdir.py

Hope this helps!

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@renefritze
Comment options

@nicoddemus
Comment options

@renefritze
Comment options

@nicoddemus
Comment options

Answer selected by nicoddemus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants