Skip to content

Commit 8135531

Browse files
committed
Simplify workflows
1 parent 5cc0fc6 commit 8135531

2 files changed

Lines changed: 18 additions & 28 deletions

File tree

.github/workflows/cd_pypi.yml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ name: Release Python Package to pypi
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
jobs:
99
publish:
10-
1110
runs-on: ubuntu-latest
1211

1312
environment:
@@ -18,24 +17,19 @@ jobs:
1817
id-token: write
1918

2019
steps:
21-
- name: Checkout
22-
uses: actions/checkout@v6
23-
24-
- name: Set up Python
25-
uses: actions/setup-python@v6
26-
with:
27-
python-version: '3.10'
28-
29-
- name: Install uv
30-
uses: astral-sh/setup-uv@v7
31-
with:
32-
version: "0.10.7"
33-
enable-cache: true
34-
cache-dependency-glob: "uv.lock"
35-
36-
37-
- name: Build package
38-
run: uv build
39-
40-
- name: Publish package
41-
run: uv publish
20+
- name: Checkout
21+
uses: actions/checkout@v6
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v6
25+
with:
26+
python-version: "3.10"
27+
28+
- name: Install uv
29+
uses: astral-sh/setup-uv@v7
30+
31+
- name: Build package
32+
run: uv build
33+
34+
- name: Publish package
35+
run: uv publish

.github/workflows/test.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,11 @@ jobs:
2424

2525
- name: Install uv
2626
uses: astral-sh/setup-uv@v7
27-
with:
28-
version: "0.10.7"
29-
enable-cache: true
30-
cache-dependency-glob: "uv.lock"
3127

3228
- name: Install dependencies
3329
run: uv sync --all-groups
3430

3531
- name: Run tests
3632
run: uv run pytest
3733
env:
38-
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }}
34+
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }}

0 commit comments

Comments
 (0)