Skip to content

Commit a374df6

Browse files
⬆️ CI/CD-#96: Fix branch detection for pre-releases, Python 3.14 experimental, and poetry lock fallback
1 parent 9cf5f4b commit a374df6

4 files changed

Lines changed: 15 additions & 5 deletions

File tree

.github/actions/setup-poetry/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ runs:
4343
- name: 🔒 Update lock file if needed
4444
shell: bash
4545
run: |
46-
poetry lock --no-update || true
46+
poetry lock --no-update 2>/dev/null || poetry lock
4747
4848
- name: ⚙️ Install dependencies
4949
if: inputs.install-deps != ''

.github/workflows/code-quality.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ jobs:
1010
code-quality:
1111
name: Code Quality Checks
1212
runs-on: ubuntu-latest
13+
continue-on-error: ${{ matrix.experimental == true }}
1314
strategy:
15+
fail-fast: false
1416
matrix:
15-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
18+
include:
19+
- python-version: "3.14"
20+
experimental: true
1621

1722
steps:
1823
- name: 📥 Checkout code

.github/workflows/python-publish-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
if git rev-parse --verify "$BRANCH"^{tag} >/dev/null 2>&1 2>&1 || [[ "$TARGET" == refs/tags/* ]]; then
2525
git fetch --all --tags
2626
TAG_NAME="${TARGET#refs/tags/}"
27-
BRANCH=$(git branch -r --contains "$TAG_NAME" | grep -E "(main|master)" | head -1 | sed 's|origin/||' | xargs || \
27+
BRANCH=$(git branch -r --contains "$TAG_NAME" | grep -E "(main|master|develop)" | head -1 | sed 's|origin/||' | xargs || \
2828
git branch -r --contains "$TAG_NAME" | head -1 | sed 's|origin/||' | xargs || \
2929
echo "master")
3030
fi
@@ -89,7 +89,7 @@ jobs:
8989
9090
if [[ "$TARGET" == refs/tags/* ]] || git rev-parse --verify "$BRANCH"^{tag} >/dev/null 2>&1; then
9191
TAG_NAME="${TARGET#refs/tags/}"
92-
BRANCH=$(git branch -r --contains "$TAG_NAME" | grep -E "(main|master)" | head -1 | sed 's|origin/||' | xargs || \
92+
BRANCH=$(git branch -r --contains "$TAG_NAME" | grep -E "(main|master|develop)" | head -1 | sed 's|origin/||' | xargs || \
9393
git branch -r --contains "$TAG_NAME" | head -1 | sed 's|origin/||' | xargs || \
9494
echo "master")
9595
fi

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ jobs:
1010
test:
1111
name: Run Tests
1212
runs-on: ubuntu-latest
13+
continue-on-error: ${{ matrix.experimental == true }}
1314
strategy:
15+
fail-fast: false
1416
matrix:
15-
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
18+
include:
19+
- python-version: "3.14"
20+
experimental: true
1621

1722
steps:
1823
- name: 📥 Checkout code

0 commit comments

Comments
 (0)