From 0794eee5f478e2a30fc10d2bbdd029fab233aa01 Mon Sep 17 00:00:00 2001 From: Kevin Stillhammer Date: Sun, 27 Aug 2023 18:08:42 +0200 Subject: [PATCH] fix: Add doc for rye version 0.12.0 --- .github/workflows/test.yml | 4 ++-- README.md | 15 ++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b9307a8..10305d5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -44,12 +44,13 @@ jobs: strategy: matrix: os: [ubuntu-latest, oracle-aarch64] + rye-version: ['0.11.0', '0.12.0'] steps: - uses: actions/checkout@v3 - name: Install specific version uses: ./ with: - version: '0.11.0' + version: ${{ matrix.rye-version }} - run: | which rye test-checksum: @@ -64,7 +65,6 @@ jobs: include: - os: oracle-aarch64 checksum: '7e0b1f6e3490a79c1d2600e8c04dd9ed4ea04d29d6c80f1f5a84a79736e9a21d' - steps: - uses: actions/checkout@v3 - name: Checksum matches expected diff --git a/README.md b/README.md index 2ee343f..2879003 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ Set up your GitHub Actions workflow with a specific version of [rye](https://rye * Install a version of rye and add it to the path * Cache the installed version of rye to speed up consecutive runs on self-hosted runners * Register problem matchers for error output +* Optional: Cache the virtual environment created by rye +* Optional: Verify the checksum of the downloaded rye executable ## Limitations @@ -25,7 +27,7 @@ You can also specify a specific version of rye - name: Install a specific version uses: eifinger/setup-rye@v1 with: - version: '0.11.0' + version: '0.12.0' ``` ### Validate checksum @@ -38,14 +40,17 @@ of the rye repo. - name: Install a specific version and validate the checksum uses: eifinger/setup-rye@v1 with: - version: '0.11.0' - checksum: '00e795573477a2fe2b3c0ac748240364c3369218d314d1df47d2653764e9bfb1' + version: '0.12.0' + checksum: 'c48d850e90649d868d512f60af67c74aa844d80f951fdb38589220662e709da7' ``` ### Enable caching -If you enable caching the virtual environment under which gets created by `rye` under `.venv` will -be cached. You can optionally define a custom cache key prefix. +If you enable caching the virtual environment which gets created by `rye` under `.venv` will +be cached. This can speed up runs which can reuse the cache +by several minutes. + +You can optionally define a custom cache key prefix. ```yaml - name: Enable caching and define a custom cache key prefix