Skip to content

Commit

Permalink
fix: action
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Feb 27, 2024
1 parent e516e2d commit fcbaaf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install uv
run: |
pip install uv
- name: Install rye
uses: eifinger/setup-rye@v1

- name: Load cached venv
id: cached-venv-dependencies
Expand All @@ -35,8 +34,8 @@ jobs:
- name: Install dependencies
if: steps.cached-venv-dependencies.outputs.cache-hit != 'true'
run: |
uv pip compile --extra uvloop pyproject.toml -o requirements.txt
pip install -r requirements.txt
rye config --set-bool behavior.global-python=true
rye sync --features uvloop
- name: Load cached pre-commit
id: cached-pre-commit-dependencies
Expand All @@ -47,11 +46,11 @@ jobs:

- name: Code checks
run: |
pre-commit run --all-files --show-diff-on-failure
rye run pre-commit run --all-files --show-diff-on-failure
- name: Test with pytest
run: |
pytest
rye run pytest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ jobs:
- name: Release to PyPI
run: |
rye publish --token ${{ secrets.PYPI_API_TOKEN }} || \
rye publish --token ${{ secrets.PYPI_API_TOKEN }} --yes || \
echo 'Version exists'

0 comments on commit fcbaaf8

Please sign in to comment.