Skip to content

Commit

Permalink
Do not use uv system envvar; Use uv to install python
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Oct 29, 2024
1 parent 845ccd6 commit 81c7bc0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
UV_SYSTEM_PYTHON: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v3
- run: uv python install
- run: make dev
- run: make lint
- run: make fmt

Expand All @@ -27,9 +27,8 @@ jobs:
- "3.12"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@v3
- run: uv python install ${{ matrix.python-version }}
- run: make dev
- run: make test

Expand Down Expand Up @@ -94,6 +93,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v3
- run: uv python install
- run: make dev
- run: make build
5 changes: 2 additions & 3 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ on:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
UV_SYSTEM_PYTHON: true
jobs:
cov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v3
- run: uv python install
- run: make dev
- run: make test
- run: make cov-xml
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ on:
push:
tags:
- "v*.*.*"
env:
UV_SYSTEM_PYTHON: true
jobs:
default:
runs-on: ubuntu-latest
Expand All @@ -14,7 +12,8 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v3
- run: uv python install
- uses: actions/setup-node@v4
- run: make build
- run: make install
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
- "v*.*.*"
pull_request:

env:
UV_SYSTEM_PYTHON: true

permissions:
id-token: write
pages: write
Expand All @@ -25,7 +22,8 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v3
- run: uv python install
- run: make deps
- run: make build
- run: make install
Expand All @@ -44,7 +42,8 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v3
- run: uv python install
- uses: actions/setup-node@v4
- uses: quarto-dev/quarto-actions/setup@v2
- run: make deps
Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM python:3

ENV UV_SYSTEM_PYTHON=true

RUN apt-get update && apt-get install -y make

WORKDIR /sdk
Expand Down

0 comments on commit 81c7bc0

Please sign in to comment.