Giter Site home page Giter Site logo

Comments (3)

sondrelg avatar sondrelg commented on May 29, 2024

Are you saying you're unable to run the action with Poetry v1 or above? Can you add your workflow specification?

from install-poetry.

miigotu avatar miigotu commented on May 29, 2024

I agree that the prefix is not needed (or allowed) in 1.0.4 or so +

I can pip install some different poetry versions later in clean environments to verify.

I've been using something like this for awhile:

poetry config virtualenvs.in-project true
poetry config virtualenvs.path .venv

https://python-poetry.org/docs/configuration/#virtualenvsin-project

from install-poetry.

miigotu avatar miigotu commented on May 29, 2024

@chanansh are you sure you aren't setting that yourself in the workflow? Please show your workflow file.

In this project, it is called like this:

poetry config virtualenvs.in-project "$venv_in_project"

where $venv_in_project is true or false, determined by your setting in the with parameter on the workflow.

This is how it is done:

jobs:
  install-poetry:
    name: Install and configure Poetry
    uses: snok/install-poetry@v1
    with:
        version: 1.1.13
        virtualenvs-create: true
        virtualenvs-in-project: true
        virtualenvs-path: .venv
        installer-parallel: false

I think your workflow must call poetry config settings.virtualenvs.in-project true in a later step, after poetry is installed, or you are using an outdated version of the action.

I suggest you also use dependabot or some other workflow to keep your actions dependencies updated:

.github/dependabot.yml

version: 2
updates:
- package-ecosystem: github-actions
  directory: "/"
  schedule:
    interval: daily

from install-poetry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.