From 2bd53f9a4d1dd1cd21eaffcc01a7b91a8e73ea4c Mon Sep 17 00:00:00 2001 From: gowridurgad <159780674+gowridurgad@users.noreply.github.com> Date: Thu, 8 Aug 2024 23:24:56 +0530 Subject: [PATCH] Documentation update for caching poetry dependencies (#908) * Create testing.yml * Update testing.yml * Fix for parsing version number from TOML 1.0.0 pyproject.toml file * Delete .github/workflows/testing.yml * fixed license issue * updated the Note * updated doc * updated the doc * npm run build * Mark up corrections --------- Co-authored-by: gowridurgad Co-authored-by: HarithaVattikuti <73516759+HarithaVattikuti@users.noreply.github.com> --- dist/setup/index.js | 2 +- docs/advanced-usage.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 0530081..126f4a3 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -90514,7 +90514,7 @@ class PipenvCache extends cache_distributor_1.default { computeKeys() { return __awaiter(this, void 0, void 0, function* () { const hash = yield glob.hashFiles(this.patterns); - const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${process.arch}-${this.pythonVersion}-${this.packageManager}-${hash}`; + const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${process.arch}-python-${this.pythonVersion}-${this.packageManager}-${hash}`; const restoreKey = undefined; return { primaryKey, diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 501c8fd..65ccda2 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -319,6 +319,7 @@ steps: - run: poetry install - run: poetry run pytest ``` +>**Note:** If the `setup-python` version does not match the version specified in `pyproject.toml` and the python version in `pyproject.toml` is less than the runner's python version, `poetry install` will default to using the runner's Python version. **Using a list of file paths to cache dependencies** ```yaml