Skip to content

Commit 8fec39d

Browse files
committed
ci: add release-please workflow, update publish workflow and test deps
1 parent 383d14b commit 8fec39d

File tree

3 files changed

+32
-16
lines changed

3 files changed

+32
-16
lines changed

.github/workflows/publish.yml

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish Python Package 🐍
1+
name: Publish Python Package
22

33
on:
44
release:
@@ -9,30 +9,27 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
13+
1314
- name: Set up Python
14-
uses: actions/setup-python@v3
15+
uses: actions/setup-python@v5
1516
with:
16-
python-version: "3.10"
17-
18-
- name: Install setup dependencies
19-
run: make setup_dependencies
17+
python-version: '3.12'
2018

21-
- name: Install dependencies
22-
run: make build
19+
- name: Install build dependencies
20+
run: |
21+
pip install --upgrade pip setuptools wheel build
2322
2423
- name: Build package
2524
run: python -m build
2625

27-
- name: Publish package to TestPYPI
28-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
26+
- name: Publish to TestPyPI
27+
uses: pypa/gh-action-pypi-publish@release/v1
2928
with:
30-
user: __token__
3129
password: ${{ secrets.TEST_PYPI_TOKEN }}
32-
repository_url: https://test.pypi.org/legacy/
30+
repository-url: https://test.pypi.org/legacy/
3331

34-
- name: Publish package to PYPI
35-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
32+
- name: Publish to PyPI
33+
uses: pypa/gh-action-pypi-publish@release/v1
3634
with:
37-
user: __token__
3835
password: ${{ secrets.PYPI_TOKEN }}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
release-please:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: googleapis/release-please-action@v4
17+
with:
18+
token: ${{ secrets.GITHUB_TOKEN }}

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pydantic~=2.11.4
22
httpx~=0.28.1
33
pytest~=8.3.5
4+
pytest-asyncio~=0.25.0

0 commit comments

Comments
 (0)