[GitHub Actions](https://docs.github.com/en/actions) で [Poetry](https://github.com/python-poetry/poetry) 自身のキャッシュを行うための考察. ## 動機 1. 時間 GHA で Lint や Test の度に `Poetry` を用意する必要がある. 準備をするのにそれなりの時間を要するため, `Poetry` 自身をキャッシュできるか考察をする. [snok/install-poetry@v1](https://github.com/snok/install-poetry) で実現できなかったことにも起因する. 2. 制限 根本的には [Included storage and minutes](https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#included-storage-and-minutes) ## 対象 - OS は Linux / Windows / macOS - 特に指定がなければ `Poetry` (1.3.1) - [`actions/cache@v3`](https://github.com/actions/cache) ## 話題 - ~~[POETRY_HOME を指定することで起きる不具合](https://github.com/Hasenpfote/pyenv_poetry_tox_pytest_example/issues/2#issuecomment-1363829837)~~ - [Poetry のローカルキャッシュ](https://github.com/Hasenpfote/pyenv_poetry_tox_pytest_example/issues/2#issuecomment-1364466476) - [Windows 上でシンボリックリンク復元に問題がある](https://github.com/Hasenpfote/pyenv_poetry_tox_pytest_example/issues/2#issuecomment-1364525261) - [Windows 上で poetry run tox - e py が意図しないバージョンを参照する](https://github.com/Hasenpfote/pyenv_poetry_tox_pytest_example/issues/2#issuecomment-1366334353) ## 外部の問題 - ~~Poetry (1.3.1) でWindows に `POETRY_HOME` を指定すると動作が怪しい~~ - `actions/cache@v3` の Windows におけるシンボリックリンク復元動作が怪しい ## 成果物 - [Draft - 1](https://github.com/Hasenpfote/pyenv_poetry_tox_pytest_example/issues/2#issuecomment-1363715765) - [Draft - 2](https://github.com/Hasenpfote/pyenv_poetry_tox_pytest_example/issues/2#issuecomment-1364463102) - [Draft - 3](https://github.com/Hasenpfote/pyenv_poetry_tox_pytest_example/issues/2#issuecomment-1364500258) - [Draft - 4](https://github.com/Hasenpfote/pyenv_poetry_tox_pytest_example/issues/2#issuecomment-1364930788) - [Draft - 5](https://github.com/Hasenpfote/pyenv_poetry_tox_pytest_example/issues/2#issuecomment-1366403157)
GitHub Actions で Poetry 自身のキャッシュを行うための考察.
動機
GHA で Lint や Test の度に
Poetryを用意する必要がある.準備をするのにそれなりの時間を要するため,
Poetry自身をキャッシュできるか考察をする.snok/install-poetry@v1 で実現できなかったことにも起因する.
根本的には Included storage and minutes
対象
Poetry(1.3.1)actions/cache@v3話題
POETRY_HOME を指定することで起きる不具合外部の問題
Poetry (1.3.1) でWindows にPOETRY_HOMEを指定すると動作が怪しいactions/cache@v3の Windows におけるシンボリックリンク復元動作が怪しい成果物