File tree Expand file tree Collapse file tree 2 files changed +3
-18
lines changed
Expand file tree Collapse file tree 2 files changed +3
-18
lines changed Original file line number Diff line number Diff line change 1212 strategy :
1313 fail-fast : false
1414 matrix :
15- python-version : ["3.9 ", "3.10 ", "3.11 "]
15+ python-version : ["3.10 ", "3.11 ", "3.12 "]
1616 runs-on : ubuntu-latest
1717 steps :
1818 - name : Checkout code
4141
4242 - name : Install package
4343 run : poetry install --all-extras
44-
45- - name : Validate version
46- run : |
47- POETRY_VERSION=$(poetry version -s)
48- INIT_VERSION=$(python -c "import dyana; print(dyana.__version__)")
49- if [ "$POETRY_VERSION" != "$INIT_VERSION" ]; then
50- echo "Version mismatch: pyproject.toml ($POETRY_VERSION) != __init__.py ($INIT_VERSION)"
51- exit 1
52- fi
53-
44+
5445 - name : Lint
5546 run : poetry run ruff check --output-format=github dyana
5647
Original file line number Diff line number Diff line change @@ -39,18 +39,12 @@ jobs:
3939 run : |
4040 TAG_VERSION=${GITHUB_REF#refs/tags/v}
4141 POETRY_VERSION=$(poetry version -s)
42- INIT_VERSION=$(python -c "import dyana; print(dyana.__version__)")
4342
4443 if ! [[ $TAG_VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
4544 echo "Invalid tag format: $TAG_VERSION. Must be vX.X.X"
4645 exit 1
4746 fi
48-
49- if [ "$POETRY_VERSION" != "$INIT_VERSION" ]; then
50- echo "Version mismatch: pyproject.toml ($POETRY_VERSION) != __init__.py ($INIT_VERSION)"
51- exit 1
52- fi
53-
47+
5448 if [ "$TAG_VERSION" != "$POETRY_VERSION" ]; then
5549 echo "Tag ($TAG_VERSION) doesn't match pyproject.toml ($POETRY_VERSION)"
5650 exit 1
You can’t perform that action at this time.
0 commit comments