Skip to content

Commit c157efa

Browse files
committed
chore: adapt CI to uv
1 parent d462048 commit c157efa

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12-
- name: Set up Python
13-
uses: actions/setup-python@v5
12+
- name: Install uv & Python
13+
uses: astral-sh/setup-uv@v6
1414
with:
15-
python-version: '3.x'
16-
- name: Install dependencies
17-
run: |
18-
python -m pip install --upgrade pip
19-
pip install poetry
20-
poetry install
21-
- run: poetry publish --build
15+
enable-cache: true
16+
cache-dependency-glob: "uv.lock"
17+
python-version-file: "pyproject.toml"
18+
- run: uv build
19+
- run: uv publish
2220
env:
23-
POETRY_PYPI_TOKEN_PYPI: ${{secrets.POETRY_PYPI_TOKEN_PYPI}}
21+
UV_PUBLISH_TOKEN: ${{secrets.POETRY_PYPI_TOKEN_PYPI}}

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ jobs:
2020
uses: actions/setup-python@v5
2121
with:
2222
python-version: ${{ matrix.python-version }}
23-
- name: Install dependencies
24-
run: |
25-
python -m pip install --upgrade pip
26-
pip install poetry
27-
poetry install
23+
- name: Install uv & Python
24+
uses: astral-sh/setup-uv@v6
25+
with:
26+
enable-cache: true
27+
cache-dependency-glob: "uv.lock"
28+
python-version: ${{ matrix.python-version }}
2829
- name: Black source code formating check
2930
run: |
3031
poetry run black --check .

0 commit comments

Comments
 (0)