Add poetry example
This commit is contained in:
parent
81b7281936
commit
bbe739ea39
|
@ -168,6 +168,7 @@ See [Examples](examples.md) for a list of `actions/cache` implementations for us
|
||||||
* [PHP - Composer](./examples.md#php---composer)
|
* [PHP - Composer](./examples.md#php---composer)
|
||||||
* [Python - pip](./examples.md#python---pip)
|
* [Python - pip](./examples.md#python---pip)
|
||||||
* [Python - pipenv](./examples.md#python---pipenv)
|
* [Python - pipenv](./examples.md#python---pipenv)
|
||||||
|
* [Python - poetry](./examples.md#python---poetry)
|
||||||
* [R - renv](./examples.md#r---renv)
|
* [R - renv](./examples.md#r---renv)
|
||||||
* [Ruby - Bundler](./examples.md#ruby---bundler)
|
* [Ruby - Bundler](./examples.md#ruby---bundler)
|
||||||
* [Rust - Cargo](./examples.md#rust---cargo)
|
* [Rust - Cargo](./examples.md#rust---cargo)
|
||||||
|
|
72
examples.md
72
examples.md
|
@ -1,44 +1,51 @@
|
||||||
# Examples
|
# Examples
|
||||||
|
|
||||||
- [C# - NuGet](#c---nuget)
|
- [Examples](#examples)
|
||||||
- [Clojure - Lein Deps](#clojure---lein-deps)
|
- [C# - NuGet](#c---nuget)
|
||||||
- [D - DUB](#d---dub)
|
- [Clojure - Lein Deps](#clojure---lein-deps)
|
||||||
|
- [D - DUB](#d---dub)
|
||||||
- [POSIX](#posix)
|
- [POSIX](#posix)
|
||||||
- [Windows](#windows)
|
- [Windows](#windows)
|
||||||
- [Deno](#deno)
|
- [Deno](#deno)
|
||||||
- [Linux](#linux)
|
- [Linux](#linux)
|
||||||
- [macOS](#macos)
|
- [macOS](#macos)
|
||||||
- [Windows](#windows-1)
|
- [Windows](#windows-1)
|
||||||
- [Elixir - Mix](#elixir---mix)
|
- [Elixir - Mix](#elixir---mix)
|
||||||
- [Erlang - Rebar3](#erlang--rebar3)
|
- [Erlang - Rebar3](#erlang---rebar3)
|
||||||
- [Go - Modules](#go---modules)
|
- [Go - Modules](#go---modules)
|
||||||
- [Linux](#linux-1)
|
- [Linux](#linux-1)
|
||||||
- [macOS](#macos-1)
|
- [macOS](#macos-1)
|
||||||
- [Windows](#windows-2)
|
- [Windows](#windows-2)
|
||||||
- [Haskell - Cabal](#haskell---cabal)
|
- [Haskell - Cabal](#haskell---cabal)
|
||||||
- [Haskell - Stack](#haskell---stack)
|
- [Haskell - Stack](#haskell---stack)
|
||||||
- [Java - Gradle](#java---gradle)
|
- [Linux or macOS](#linux-or-macos)
|
||||||
- [Java - Maven](#java---maven)
|
- [Windows](#windows-3)
|
||||||
- [Node - npm](#node---npm)
|
- [Java - Gradle](#java---gradle)
|
||||||
- [Node - Lerna](#node---lerna)
|
- [Java - Maven](#java---maven)
|
||||||
- [Node - Yarn](#node---yarn)
|
- [Node - npm](#node---npm)
|
||||||
- [Node - Yarn 2](#node---yarn-2)
|
- [**Get npm cache directory using same shell**](#get-npm-cache-directory-using-same-shell)
|
||||||
- [OCaml/Reason - esy](#ocamlreason---esy)
|
- [Bash shell](#bash-shell)
|
||||||
- [PHP - Composer](#php---composer)
|
- [PWSH shell](#pwsh-shell)
|
||||||
- [Python - pip](#python---pip)
|
- [Node - Lerna](#node---lerna)
|
||||||
|
- [Node - Yarn](#node---yarn)
|
||||||
|
- [Node - Yarn 2](#node---yarn-2)
|
||||||
|
- [OCaml/Reason - esy](#ocamlreason---esy)
|
||||||
|
- [PHP - Composer](#php---composer)
|
||||||
|
- [Python - pip](#python---pip)
|
||||||
- [Simple example](#simple-example)
|
- [Simple example](#simple-example)
|
||||||
- [Multiple OS's in a workflow](#multiple-oss-in-a-workflow)
|
- [Multiple OS's in a workflow](#multiple-oss-in-a-workflow)
|
||||||
- [Multiple OS's in a workflow with a matrix](#multiple-oss-in-a-workflow-with-a-matrix)
|
- [Multiple OS's in a workflow with a matrix](#multiple-oss-in-a-workflow-with-a-matrix)
|
||||||
- [Using pip to get cache location](#using-pip-to-get-cache-location)
|
- [Using pip to get cache location](#using-pip-to-get-cache-location)
|
||||||
- [Python - pipenv](#python---pipenv)
|
- [Python - pipenv](#python---pipenv)
|
||||||
- [R - renv](#r---renv)
|
- [Python - poetry](#python---poetry)
|
||||||
- [Ruby - Bundler](#ruby---bundler)
|
- [R - renv](#r---renv)
|
||||||
- [Rust - Cargo](#rust---cargo)
|
- [Ruby - Bundler](#ruby---bundler)
|
||||||
- [Scala - SBT](#scala---sbt)
|
- [Rust - Cargo](#rust---cargo)
|
||||||
- [Swift, Objective-C - Carthage](#swift-objective-c---carthage)
|
- [Scala - SBT](#scala---sbt)
|
||||||
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
|
- [Swift, Objective-C - Carthage](#swift-objective-c---carthage)
|
||||||
- [Swift - Swift Package Manager](#swift---swift-package-manager)
|
- [Swift, Objective-C - CocoaPods](#swift-objective-c---cocoapods)
|
||||||
- [Swift - Mint](#swift---mint)
|
- [Swift - Swift Package Manager](#swift---swift-package-manager)
|
||||||
|
- [Swift - Mint](#swift---mint)
|
||||||
|
|
||||||
## C# - NuGet
|
## C# - NuGet
|
||||||
|
|
||||||
|
@ -540,6 +547,17 @@ jobs:
|
||||||
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
|
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Python - poetry
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.cache/pypoetry
|
||||||
|
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-poetry-
|
||||||
|
```
|
||||||
|
|
||||||
## R - renv
|
## R - renv
|
||||||
|
|
||||||
For renv, the cache directory will vary by OS. The `RENV_PATHS_ROOT` environment variable is used to set the cache location. Have a look at https://rstudio.github.io/renv/reference/paths.html#details for more details.
|
For renv, the cache directory will vary by OS. The `RENV_PATHS_ROOT` environment variable is used to set the cache location. Have a look at https://rstudio.github.io/renv/reference/paths.html#details for more details.
|
||||||
|
|
Loading…
Reference in New Issue