Skip to content

Commit c4f10e6

Browse files
committed
Finish making release
1 parent b773590 commit c4f10e6

File tree

2 files changed

+33
-59
lines changed

2 files changed

+33
-59
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -4,64 +4,34 @@ on:
44
push
55

66
jobs:
7-
# run_tests:
8-
# name: Style checks and test
9-
# runs-on: ubuntu-latest
10-
# strategy:
11-
# matrix:
12-
# python-version: ["3.10", "3.11", "3.12", "3.13"]
13-
14-
# steps:
15-
# - name: Checkout
16-
# uses: actions/checkout@v3
17-
18-
# - name: Install uv
19-
# uses: astral-sh/setup-uv@v3
20-
# with:
21-
# enable-cache: true
22-
# cache-dependency-glob: uv.lock
23-
24-
# - name: Set up Python ${{ matrix.python-version }}
25-
# run: uv python install ${{ matrix.python-version }}
26-
27-
# - name: Sync environment
28-
# run: uv sync --dev
29-
30-
# - name: Build
31-
# run: uv build
32-
33-
# - name: Check
34-
# run: uv run poe check
35-
36-
# - name: Test
37-
# run: uv run poe test
38-
39-
build-n-publish:
40-
name: Build and publish to PyPI
7+
run_tests:
8+
name: Style checks and test
419
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ["3.10", "3.11", "3.12", "3.13"]
4213

4314
steps:
44-
- name: Checkout source
45-
uses: actions/checkout@v4
15+
- name: Checkout
16+
uses: actions/checkout@v3
4617

4718
- name: Install uv
4819
uses: astral-sh/setup-uv@v3
4920
with:
5021
enable-cache: true
5122
cache-dependency-glob: uv.lock
5223

53-
- name: Set up Python
54-
run: uv python install 3.13
24+
- name: Set up Python ${{ matrix.python-version }}
25+
run: uv python install ${{ matrix.python-version }}
5526

56-
- name: Set package version
57-
run: |
58-
# VERSION=$(git describe --tags)
59-
VERSION=0.0.0rc202508101
60-
uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version $VERSION
61-
echo Set package version $VERSION
27+
- name: Sync environment
28+
run: uv sync --dev
6229

6330
- name: Build
6431
run: uv build
6532

66-
- name: Publish
67-
run: uv publish -t ${{ secrets.PYPI_API_TOKEN }}
33+
- name: Check
34+
run: uv run poe check
35+
36+
- name: Test
37+
run: uv run poe test

.github/workflows/release.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,24 @@ jobs:
1414
- name: Checkout source
1515
uses: actions/checkout@v4
1616

17-
- name: Set up Python
18-
uses: actions/setup-python@v5
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v3
1919
with:
20-
python-version: "3.x"
20+
enable-cache: true
21+
cache-dependency-glob: uv.lock
22+
23+
- name: Set up Python
24+
run: uv python install 3.13
2125

22-
- name: Build source and wheel distributions
26+
- name: Set package version
2327
run: |
24-
echo "VERSION = '$(git describe --tags)'" > version.py
25-
python -m pip install --upgrade build twine
26-
python -m build
27-
python -m twine check --strict dist/*
28+
# VERSION=$(git describe --tags)
29+
VERSION=0.0.0rc202508101
30+
uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version $VERSION
31+
echo Set package version $VERSION
2832
29-
- name: Publish distribution to PyPI
30-
uses: pypa/gh-action-pypi-publish@release/v1.8
31-
with:
32-
user: __token__
33-
password: ${{ secrets.PYPI_API_TOKEN }}
33+
- name: Build
34+
run: uv build
35+
36+
- name: Publish
37+
run: uv publish -t ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)