1
0
Fork 0
mirror of https://github.com/actions/setup-python.git synced 2024-11-22 06:26:25 +00:00

Merge pull request #471 from scooby/main

Recommend using pip for simple poetry projects
This commit is contained in:
Marko Zivic 2022-07-26 11:30:23 +02:00 committed by GitHub
commit 5df6377e9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -330,6 +330,19 @@ steps:
- run: poetry run pytest
```
**If you only need poetry install, consider using pip:**
```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: 'poetry.lock'
- run: pip install .
- run: pytest
```
**Using wildcard patterns to cache dependencies**
```yaml
steps: