install-poetry-action icon indicating copy to clipboard operation
install-poetry-action copied to clipboard

Windows support ?

Open dmerejkowsky opened this issue 5 years ago • 2 comments
trafficstars

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

dmerejkowsky avatar Jan 24 '20 13:01 dmerejkowsky

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 :/

dschep avatar Jan 24 '20 23:01 dschep

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 :)

dmerejkowsky avatar Jan 27 '20 12:01 dmerejkowsky