Skip to content

Commit 4aab566

Browse files
committed
Update CI to reflect dropping 3.9 support and __version__ updates from importlib
1 parent 64009ee commit 4aab566

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
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

@@ -43,16 +43,6 @@ jobs:
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

.github/workflows/publish.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
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
@@ -36,17 +36,6 @@ jobs:
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)"

0 commit comments

Comments
 (0)