Skip to content

Commit 9dc8de6

Browse files
authored
Merge pull request #17927 from jaagut/patch-2
Add `poetry` to caching dependencies package managers
2 parents 1b917da + de16669 commit 9dc8de6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/actions/automating-builds-and-tests/building-and-testing-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ steps:
244244
- run: pip test
245245
```
246246

247-
By default, the `setup-python` action searches for the dependency file (`requirements.txt` for pip or `Pipfile.lock` for pipenv) in the whole repository. For more information, see "[Caching packages dependencies](https://github.com/actions/setup-python#caching-packages-dependencies)" in the `setup-python` README.
247+
By default, the `setup-python` action searches for the dependency file (`requirements.txt` for pip, `Pipfile.lock` for pipenv or `poetry.lock` for poetry) in the whole repository. For more information, see "[Caching packages dependencies](https://github.com/actions/setup-python#caching-packages-dependencies)" in the `setup-python` README.
248248

249249
If you have a custom requirement or need finer controls for caching, you can use the [`cache` action](https://github.com/marketplace/actions/cache). Pip caches dependencies in different locations, depending on the operating system of the runner. The path you'll need to cache may differ from the Ubuntu example above, depending on the operating system you use. For more information, see [Python caching examples](https://github.com/actions/cache/blob/main/examples.md#python---pip) in the `cache` action repository.
250250

content/actions/using-workflows/caching-dependencies-to-speed-up-workflows.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ To cache dependencies for a job, you can use {% data variables.product.prodname_
3737
<td><a href="https://github.com/actions/setup-node#caching-global-packages-data">setup-node</a></td>
3838
</tr>
3939
<tr>
40-
<td>pip, pipenv</td>
40+
<td>pip, pipenv, poetry</td>
4141
<td><a href="https://github.com/actions/setup-python#caching-packages-dependencies">setup-python</a></td>
4242
</tr>
4343
<tr>

0 commit comments

Comments
 (0)