File tree Expand file tree Collapse file tree 2 files changed +2
-23
lines changed
Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Original file line number Diff line number Diff line change 1111 strategy :
1212 fail-fast : false
1313 matrix :
14- python-version : ["3.9 ", "3.10 ", "3.11 "]
14+ python-version : ["3.10 ", "3.11 ", "3.12 "]
1515
1616 runs-on : ubuntu-latest
1717
4343 - name : Install package
4444 run : poetry install --all-extras
4545
46- - name : Validate version
47- run : |
48- POETRY_VERSION=$(poetry version -s)
49- INIT_VERSION=$(poetry run python -c "import rigging; print(rigging.__version__)")
50-
51- if [ "$POETRY_VERSION" != "$INIT_VERSION" ]; then
52- echo "Version mismatch: pyproject.toml ($POETRY_VERSION) != __init__.py ($INIT_VERSION)"
53- exit 1
54- fi
55-
5646 - name : Lint
5747 run : poetry run ruff check --output-format=github rigging
5848
Original file line number Diff line number Diff line change 1919 - name : Setup Python
2020 uses : actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
2121 with :
22- python-version : " 3.9 "
22+ python-version : " 3.10 "
2323
2424 - name : Install Poetry
2525 uses : abatilo/actions-poetry@e78f54a89cb052fff327414dd9ff010b5d2b4dbd
3636 run : |
3737 TAG_VERSION=${GITHUB_REF#refs/tags/v}
3838 POETRY_VERSION=$(poetry version -s)
39- INIT_VERSION=$(poetry run python -c "import rigging; print(rigging.__version__)")
40-
41- if ! [[ $TAG_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
42- echo "Invalid tag format: $TAG_VERSION. Must be vX.X.X"
43- exit 1
44- fi
45-
46- if [ "$POETRY_VERSION" != "$INIT_VERSION" ]; then
47- echo "Version mismatch: pyproject.toml ($POETRY_VERSION) != __init__.py ($INIT_VERSION)"
48- exit 1
49- fi
5039
5140 if [ "$TAG_VERSION" != "$POETRY_VERSION" ]; then
5241 echo "Tag ($TAG_VERSION) doesn't match pyproject.toml ($POETRY_VERSION)"
You can’t perform that action at this time.
0 commit comments