Skip to content

Commit

Permalink
ci: update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
iktakahiro committed Jul 26, 2024
1 parent 7dcf5ec commit 246dfd6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 246dfd6

Please sign in to comment.