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 3ec3a4a commit be3b938
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 @@ -38,24 +38,21 @@ 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: Linter
run: |
uv run poe lint
run: uv run poe lint
- name: Tests
env:
DROPBOX_CREDENTIALS_FOR_CI: ${{ secrets.DROPBOX_CREDENTIALS_FOR_CI }}
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

0 comments on commit be3b938

Please sign in to comment.