Skip to content

Commit 6a09e0f

Browse files
committed
ci(github-actions): resolve issue of publishing multiple times to pypi
1 parent 6b68d58 commit 6a09e0f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,24 @@ jobs:
2323
python-version: ${{ matrix.python-version }}
2424
enable-cache: true
2525
cache-dependency-glob: "uv.lock"
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run: uv sync --all-groups
29+
- name: Run tests
30+
run: uv run pytest
31+
32+
publish:
33+
needs: tests
34+
runs-on: macos-latest
35+
steps:
36+
- name: Checkout
37+
uses: actions/checkout@v4.1.6
38+
- name: Setup uv
39+
uses: astral-sh/setup-uv@v7
40+
with:
41+
enable-cache: true
42+
cache-dependency-glob: "uv.lock"
43+
python-version: "3.12"
2644
- name: Install dependencies
2745
run: uv sync --all-groups
2846
- name: Build and publish

0 commit comments

Comments
 (0)