Skip to content
download

GitHub Action

install rye

v1.4 Latest version

install rye

download

install rye

instal rye using in github action

Installation

Copy and paste the following snippet into your .yml file.

              

- name: install rye

uses: phi-friday/[email protected]

Learn more about this action in phi-friday/install-rye

Choose a version

install-rye

install rye in github action

how to use

- uses: phi-friday/[email protected]
  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/[email protected]
    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