Skip to content

Commit 39d08a2

Browse files
committed
workflow updates
1 parent 30e645a commit 39d08a2

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
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
@@ -41,16 +41,7 @@ jobs:
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

.github/workflows/publish.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)