Skip to content

Commit 251ef54

Browse files
authored
Separate changelog check into its own job (#221)
1 parent 2444c8c commit 251ef54

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,28 @@ name: CI
33
on: [push, workflow_dispatch]
44

55
jobs:
6+
changelog:
7+
runs-on: ubuntu-24.04
8+
name: Check for required changelogs
9+
if: ${{ !contains(github.event.head_commit.author, 'renovate') }}
10+
steps:
11+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
12+
with:
13+
fetch-depth: 0 # fetch all history
14+
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@22695119d769bdb6f7032ad67b9bca0ef8c4a174 # v5
17+
18+
- name: Install dependencies
19+
run: uv sync
20+
21+
- name: Changelog
22+
run: uv run scripts/changelog.py check
23+
24+
625
tests:
726
runs-on: ubuntu-24.04
27+
name: Python tests
828
strategy:
929
matrix:
1030
python-version:
@@ -52,10 +72,6 @@ jobs:
5272
- name: Tests
5373
run: uv run pytest
5474

55-
- name: Changelog
56-
if: ${{ !contains(github.event.head_commit.author, 'renovate') }}
57-
run: uv run scripts/changelog.py check
58-
5975
# - name: Upload coverage to CodeCov
6076
# uses: codecov/codecov-action@v1
6177
# with:
@@ -64,6 +80,7 @@ jobs:
6480

6581
release:
6682
needs: tests
83+
name: Publish to PyPI
6784
runs-on: ubuntu-24.04
6885
if: startsWith(github.ref, 'refs/tags/')
6986
steps:

0 commit comments

Comments
 (0)