Skip to content

Commit 83bb011

Browse files
committed
chore: align wheel versions to git tags
1 parent b9cf8e7 commit 83bb011

5 files changed

Lines changed: 34 additions & 8 deletions

File tree

.github/workflows/release-python-packages.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,17 @@ jobs:
6767
name: Run Example Tests
6868
needs: validate-version
6969
uses: ./.github/workflows/test-python-examples.yml
70+
with:
71+
build-version: ${{ needs.validate-version.outputs.python-version }}
7072
secrets: inherit
7173

7274
# Run unit tests before building
7375
test:
7476
name: Run Unit Tests
7577
needs: validate-version
7678
uses: ./.github/workflows/test-python-bindings.yml
79+
with:
80+
build-version: ${{ needs.validate-version.outputs.python-version }}
7781
secrets: inherit
7882

7983
publish:
@@ -180,14 +184,7 @@ jobs:
180184
- name: Verify wheel versions
181185
run: |
182186
TAG_VERSION="${{ needs.validate-version.outputs.python-version }}"
183-
BASE_VERSION="${{ needs.validate-version.outputs.base-version }}"
184-
185-
# If tag is a pre-release (dev/rc/a/b/post), accept wheels built with base version.
186-
if [[ "$TAG_VERSION" =~ \.(dev|post|rc|a|b)[0-9]+$ ]]; then
187-
EXPECTED_VERSION="$BASE_VERSION"
188-
else
189-
EXPECTED_VERSION="$TAG_VERSION"
190-
fi
187+
EXPECTED_VERSION="$TAG_VERSION"
191188
192189
for WHEEL_FILE in dist/*.whl; do
193190
echo "📦 Checking: $WHEEL_FILE"

.github/workflows/test-python-bindings.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ on:
2020

2121
# Allow being called by other workflows (e.g., release workflow)
2222
workflow_call:
23+
inputs:
24+
build-version:
25+
description: "Override package version (PEP 440) for build.sh"
26+
required: false
27+
type: string
2328

2429
# Allow manual trigger
2530
workflow_dispatch:
@@ -110,6 +115,8 @@ jobs:
110115
name: Test arcadedb-embedded (${{ matrix.platform }}, Python ${{ matrix.python-version }})
111116
runs-on: ${{ matrix.runs-on }}
112117
needs: download-jars
118+
env:
119+
BUILD_VERSION: ${{ inputs.build-version }}
113120
strategy:
114121
# Don't cancel other matrix jobs if one fails
115122
fail-fast: false

.github/workflows/test-python-examples.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ on:
2626
required: false
2727
type: string
2828
default: "01_*.py"
29+
build-version:
30+
description: "Override package version (PEP 440) for build.sh"
31+
required: false
32+
type: string
2933

3034
# Allow manual trigger
3135
workflow_dispatch:
@@ -121,6 +125,8 @@ jobs:
121125
name: Test Python Examples (${{ matrix.platform }}, Python ${{ matrix.python-version }})
122126
runs-on: ${{ matrix.runs-on }}
123127
needs: download-jars
128+
env:
129+
BUILD_VERSION: ${{ inputs.build-version }}
124130
strategy:
125131
fail-fast: false
126132
matrix:
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
window.MathJax = {
2+
tex: {
3+
inlineMath: [['\\(', '\\)'], ['$', '$']]
4+
},
5+
options: {
6+
ignoreHtmlClass: '.*',
7+
processHtmlClass: 'arithmatex'
8+
}
9+
};
10+
11+
document$.subscribe(() => {
12+
if (window.MathJax && window.MathJax.typesetPromise) {
13+
window.MathJax.typesetPromise();
14+
}
15+
});

bindings/python/mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ extra_css:
128128
- stylesheets/extra.css
129129

130130
extra_javascript:
131+
- javascripts/mathjax.js
131132
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
132133

133134
nav:

0 commit comments

Comments
 (0)