Skip to content

phi-friday/install-rye

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

install-rye

install rye in github action

how to use

- uses: phi-friday/install-rye@v1.4
  id: install-rye
  with:
    rye_version: "latest" # optional
    rye_home: "" # optional
    python_version: 3.12 # optional
    use_uv: true # optional

with cache

strategy:
  fail-fast: true
  matrix:
    include:
      - rye_version: "0.28.0"
        rye_home: "/opt/rye"
        use_uv: "true"

steps:
  - uses: actions/cache@v4
    id: get-cache
    key: "${{ matrix.rye_version }}-${{ matrix.use_uv }}"
    path: "${{ matrix.rye_home }}"

  - uses: phi-friday/install-rye@v1.2
    if: steps.get-cache.outputs.cache-hit != 'true'
    id: install-rye
    with:
      rye_version: "${{ matrix.rye_version }}"
      rye_home: "${{ matrix.rye_home }}"
      use_uv: "${{ matrix.use_uv }}"

output

  1. rye-version

installed rye version.

ex: 0.28.0

  1. rye-home

installed rye path

ex: /home/runner/.rye

  1. python-version

pinned python version

ex: 3.12.2

  1. use-uv

use uv flag

ex: true