Skip to content

Commit

Permalink
Use setup-uv in place of setup-python
Browse files Browse the repository at this point in the history
  • Loading branch information
rkhwaja committed Nov 25, 2024
1 parent 2d07d10 commit 4183c47
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,16 @@ jobs:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Checkout repository
uses: actions/checkout@v4
- name: Install uv
uses: yezz123/setup-uv@v4
uses: astral-sh/setup-uv@v3
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Dependencies
run: |
uv sync --no-cache
run: uv sync --no-cache
- name: Lint
run: |
uv run poe lint
run: uv run poe lint
- name: Tests
env:
GOOGLEDRIVEFS_TEST_CLIENT_ID: ${{ secrets.GOOGLEDRIVEFS_TEST_CLIENT_ID }}
Expand All @@ -64,7 +61,7 @@ jobs:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
if: ${{needs.secrets.outputs.valid}} == 'true'
run: |
if python --version | grep -q 'Python 3.13' ; then
if uv run python --version | grep -q 'Python 3.13' ; then
uv run poe test
fi
- name: Coverage
Expand Down

0 comments on commit 4183c47

Please sign in to comment.