Skip to content

Commit

Permalink
ci: 使用 rye
Browse files Browse the repository at this point in the history
  • Loading branch information
he0119 committed Jul 12, 2024
1 parent dd068c0 commit 4c679c1
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: he0119/setup-python@main
- name: Setup rye
uses: eifinger/setup-rye@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: poetry install
enable-cache: true
cache-prefix: ${{ runner.os }}-${{ env.PYTHON_VERSION }}
- name: Install prerequisites
run: |
rye pin ${{ env.PYTHON_VERSION }}
rye sync
- name: Run tests
run: poetry run pytest -n auto --cov=nonebot_plugin_user --cov-report xml
run: rye run test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down

0 comments on commit 4c679c1

Please sign in to comment.