dschep / install-poetry-action

A Github action to install poetry
MIT License
31 stars 7 forks source link

Windows support ? #6

Open dmerejkowsky opened 4 years ago

dmerejkowsky commented 4 years ago

There's a check of this action on Windows, but it fails here:

##[error]There was an error when attempting to execute the process 'poetry'. This may indicate the process failed to start. Error: spawn poetry ENOENT

Not sure where the issue is, but if this action does not work on Windows, I guess it deserves a mention in the doc

dschep commented 4 years ago

Yeah, not sure why it stopped working. I don't think I made a change that caused it to break. Alas... updating the readme will more likely be to reflect I don't maintain this any more :/

dmerejkowsky commented 4 years ago

On the other hand, this works on the three operating systems (assuming pytest is a dev dep):

    - name: Install and configure poetry
      run: |
        python -m pip install poetry
        python -m poetry config virtualenvs.create false

    - name: Prepare project for development
      run: python -m poetry install

    - name: Run tests
      run: |
        python -m pytest 

See full example here: https://github.com/dmerejkowsky/python-cli-ui/blob/master/.github/workflows/tests.yml

So there :)