Skip to content

Commit 85f5198

Browse files
Update README with FAQ
1 parent b2cc42c commit 85f5198

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ This action wraps around [actions/setup-python](https://github.com/actions/setup
2222
- [Inputs](#inputs)
2323
- [allow-build input](#allow-build-input)
2424
- [Outputs](#outputs)
25+
- [FAQ](#faq)
2526
- [Contributing](#contributing)
2627

2728
## Basic usage
@@ -156,6 +157,14 @@ This action will emit the following outputs:
156157
|cache-hit|A boolean value to indicate a cache entry was found (for pip, pipenv and poetry).|
157158
|python-path|The absolute path to the Python or PyPy executable.|
158159

160+
## FAQ
161+
162+
#### No file in (...) matched to [**/requirements.txt or **/pyproject.toml], make sure you have checked out the target repository
163+
164+
This is a byproduct of [actions/setup-python](https://github.com/actions/setup-python).
165+
If you wish to cache your pip dependencies, you need to have anywhere in your repository a `requirements.txt` or a `pyproject.toml` file.
166+
The solution in this case is either creating a blank `requirements.txt` file or stop caching pip (in order to do so simply remove `cache: pip` from your `.yml` file).
167+
159168
## Contributing
160169

161170
This action is pretty much only a wrapper for a javascript action.

0 commit comments

Comments
 (0)