From 246dfd6d0ffa6667e7047b7f20dda22c8f2a6cf7 Mon Sep 17 00:00:00 2001 From: Takahiro Ikeuchi Date: Fri, 26 Jul 2024 06:36:52 +0000 Subject: [PATCH] ci: update test.yml --- .github/workflows/test.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4e77257..7c5a088 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,20 +9,21 @@ jobs: strategy: matrix: python-version: [3.11] - poetry-version: [1.4.2] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.ref }} - name: Use Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Install Poetry + - name: Install Rye run: | - curl -sSL https://install.python-poetry.org | POETRY_HOME=$HOME/.poetry/ python - $HOME/.poetry/bin/poetry install - $HOME/.poetry/bin/poetry env use python${{ matrix.python-version }} + curl -sSf https://rye.astral.sh/get | RYE_INSTALL_OPTION="--yes" bash + ENV RYE_HOME="/opt/rye" + ENV PATH="$RYE_HOME/shims:$PATH" + source $HOME/.rye/env + rye sync - name: Pytest run: | - $HOME/.poetry/bin/poetry run pytest + rye run pytest