ni/python-actions v0.7.0
·
14 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
What's Changed
-
analyze-project: Replaceextrasinput with a more generalinstall-argsinput (#40)- Now you can use
install-argsto pass whatever arguments you want topoetry install. Example:
- uses: ni/python-actions/analyze-project@v0 with: project-directory: ${{ github.workspace }}/packages/myproject install-args: "--extras 'colors serialization' --with dev,docs,utils"
- The
extrasinput has been removed. This breaks compatibility, but this project's major version is still 0, so we are only bumping the minor version.
- Now you can use
-
setup-poetry: Use temporary directory for Poetry installs (#41)- Originally, the Poetry install directory was
$HOME/.local/poetry. This worked fine on GitHub-hosted runners and ephemeral self-hosted runners, but on long-lived self-hosted runners it produces errors when the directory already exists. - In v0.6.0, the Poetry install directory was changed to
$GITHUB_WORKSPACE/.cache/poetryso that self-hosted runners would automatically clean it up. However, this broke compatibility with clients that run tools that search the entire GitHub workspace for Python files. - In v0.6.1, the Poetry install directory was changed to the pipeline directory (
$GITHUB_WORKSPACE/..) to hide it from tools that search the entire GitHub workspace. However, this caused a regression for long-lived self-hosted runners. - In v0.7.0, the Poetry install directory was changed to
$RUNNER_TEMP/poetry, which is cleaned up before/after each job, but which is outside the GitHub workspace. This directory seems to be stable enough that caching is still effective. Hopefully this will be the last change of Poetry install location; if not, we will probably add an input to allow overriding it.
- Originally, the Poetry install directory was
Full Changelog: v0.6.1...v0.7.0