Skip to content

ni/python-actions v0.7.0

Choose a tag to compare

@bkeryan bkeryan released this 02 Oct 22:51
· 14 commits to main since this release
Immutable release. Only release title and notes can be modified.
9768589

What's Changed

  • analyze-project: Replace extras input with a more general install-args input (#40)

    • Now you can use install-args to pass whatever arguments you want to poetry 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 extras input has been removed. This breaks compatibility, but this project's major version is still 0, so we are only bumping the minor version.
  • 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/poetry so 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.

Full Changelog: v0.6.1...v0.7.0