Skip to content

Commit ffbb4da

Browse files
authored
ci: udpate package dependency after bump (#64)
1 parent 428e156 commit ffbb4da

File tree

3 files changed

+45
-29
lines changed

3 files changed

+45
-29
lines changed

.github/workflows/bumpversion.yml

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ jobs:
77
bump_version:
88
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') && github.ref == 'refs/heads/main' }}
99
runs-on: ubuntu-latest
10+
container:
11+
image: commitizen/commitizen:4.8.3@sha256:08a078c52b368f85f34257a66e10645ee74d8cbe9b471930b80b2b4e95a9bd4a
12+
1013
name: "Bump version and create changelog with commitizen"
1114
steps:
1215
- uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1.12.0
@@ -21,10 +24,27 @@ jobs:
2124
ref: ${{ github.head_ref }}
2225
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
2326
persist-credentials: false
27+
28+
- name: Configure git
29+
run: |
30+
git config user.name "github-actions[bot]"
31+
git config user.email "github-actions[bot]@users.noreply.github.com"
32+
2433
- id: cz
2534
name: Create bump and changelog
26-
uses: commitizen-tools/commitizen-action@5b0848cd060263e24602d1eba03710e056ef7711 # 0.5.0
27-
with:
28-
github_token: ${{ steps.app-token.outputs.token }}
35+
run: |
36+
cz bump --yes
37+
echo "version=$(cz version)" >> $GITHUB_OUTPUT
38+
2939
- name: Print Version
3040
run: echo "Bumped to version ${{ steps.cz.outputs.version }}"
41+
42+
- name: Install uv
43+
uses: astral-sh/setup-uv@7edac99f961f18b581bbd960d59d049f04c0002f # v6.4.1
44+
45+
- name: Update uv.lock with the latest project version
46+
run: |
47+
uv lock --upgrade-package lightman_ai
48+
git add uv.lock
49+
git commit --amend --no-edit
50+
git push origin main --tags

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ dependencies = [
1212
"pydantic-settings[dotenv]<3.0.0,>=2.9.1",
1313
"tiktoken<1.0.0,>=0.9.0",
1414
"tomlkit<1.0.0,>=0.13.3",
15-
"ruff>=0.12.4",
1615
"pydantic-ai-slim[google,openai]>=0.4.4",
1716
"logfire>=3.25.0",
1817
"sentry-sdk>=2.21.0,<3.0.0",
@@ -43,7 +42,6 @@ local = [
4342
"codespell<3.0.0,>=2.2.4",
4443
]
4544

46-
4745
[build-system]
4846
requires = ["pdm-backend"]
4947
build-backend = "pdm.backend"

uv.lock

Lines changed: 22 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)