Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Github Action doesn't find Poetry #723

Open
Labels
bugSomething isn't working properlyconfirmedPrevent from becoming staleneeds-updateNeeds status update from maintainers
@estyrke

Description

@estyrke

The problem

I am trying to use the semantic release GitHub Action. My build step ispoetry build, and I am usingsnok/install-poetry@v1 (viapacketcoders/action-setup-cache-python-poetry@main) to install Poetry. This fails with

🛠 Running build command: poetry buildbash: line 1: poetry: command not found

Presumably because semantic-release is running inside a Docker container without access to the previously installed Poetry.

As a side note, my builds are incredibly slow because the two semantic-release actions must be built from dockerfiles each time. Those two build steps take almost a minute each (compared to the cached install of Python and Poetry which takes only 10 seconds total).

Expected behavior

My project is built correctly.

Environment

Ubuntu github runner with Python 3.11 and Poetry 1.6.1, but those are probably not relevant due to containerization.
The workflow looks like this:

      -name:Checkoutuses:actions/checkout@v4with:fetch-depth:0      -name:"Setup Python, Poetry and Dependencies"uses:packetcoders/action-setup-cache-python-poetry@mainwith:python-version:3.11poetry-version:1.6.1      -name:Python Semantic Releaseid:releaseuses:python-semantic-release/python-semantic-release@v8.0.0with:github_token:${{ secrets.GITHUB_TOKEN }}prerelease:"true"      -name:Publish package distributions to GitHub Releasesuses:python-semantic-release/upload-to-gh-release@mainif:steps.release.outputs.released == 'true'with:github_token:${{ secrets.GITHUB_TOKEN }}

Configuration

[build-system]requires = ["poetry-core" ]build-backend ="poetry.core.masonry.api"[tool.semantic_release]version_toml = ["pyproject.toml:tool.poetry.version" ]build_command ="poetry build"version_source ="tag"commit_version_number =truecommit_message ="chore(release): v{version} [skip ci]"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working properlyconfirmedPrevent from becoming staleneeds-updateNeeds status update from maintainers

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp