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