Skip to content

Commit

Permalink
fix: Add doc for rye version 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Aug 27, 2023
1 parent 7630282 commit 0794eee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -64,7 +65,6 @@ jobs:
include:
- os: oracle-aarch64
checksum: '7e0b1f6e3490a79c1d2600e8c04dd9ed4ea04d29d6c80f1f5a84a79736e9a21d'

steps:
- uses: actions/checkout@v3
- name: Checksum matches expected
Expand Down
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0794eee

Please sign in to comment.