We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ffb4ad commit be12a7bCopy full SHA for be12a7b
.github/workflows/release.yml
@@ -10,6 +10,26 @@ permissions:
10
id-token: write
11
12
jobs:
13
+ validate-version:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+
18
+ - name: Install uv
19
+ uses: astral-sh/setup-uv@v3
20
+ with:
21
+ version: "latest"
22
+ enable-cache: true
23
24
+ - name: Validate version matches tag
25
+ run: |
26
+ TAG_VERSION=${{ github.ref_name }}
27
+ PYPROJECT_VERSION=$(uv run python -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['version'])")
28
+ if [ "$TAG_VERSION" != "$PYPROJECT_VERSION" ]; then
29
+ echo "Error: Git tag ($TAG_VERSION) doesn't match pyproject.toml version ($PYPROJECT_VERSION)"
30
+ exit 1
31
+ fi
32
33
lint:
34
runs-on: ubuntu-latest
35
steps:
0 commit comments