DEVX-1: fix: use python3 and venv python in workflows and Makefile

This commit is contained in:
emil
2026-06-22 15:52:45 +00:00
parent 60fd11419c
commit 31bfd23fea
24 changed files with 591 additions and 58 deletions
+8 -7
View File
@@ -27,19 +27,19 @@ jobs:
PYTHONPATH: src
run: |
. .venv/bin/activate
python -m devx.tools.check_test_speed --max-seconds 10
python3 -m devx.tools.check_test_speed --max-seconds 10
- name: Documentation coverage check
env:
PYTHONPATH: src
run: |
. .venv/bin/activate
python -m devx.ci.doc_coverage --fail-on-missing
python3 -m devx.ci.doc_coverage --fail-on-missing
- name: Translation completeness check
env:
PYTHONPATH: src
run: |
. .venv/bin/activate
python -m devx.ci.check_translations
python3 -m devx.ci.check_translations
- name: Dependency security scan
run: |
. .venv/bin/activate
@@ -75,7 +75,7 @@ jobs:
PYTHONPATH: src
run: |
. .venv/bin/activate
python -m devx.ci.classify_changes \
python3 -m devx.ci.classify_changes \
--base "origin/master" \
--head "${{ github.event.pull_request.head.sha || github.sha }}" \
--github-output
@@ -97,7 +97,7 @@ jobs:
run: |
. .venv/bin/activate
export PATH="$HOME/.local/bin:$PATH"
python -m devx.ci.release --dry-run || true
python3 -m devx.ci.release --dry-run || true
pr-review:
if: github.event_name == 'pull_request'
@@ -114,7 +114,7 @@ jobs:
run: |
set -euo pipefail
. .venv/bin/activate
python -m devx.ci.pr_review \
python3 -m devx.ci.pr_review \
"${{ github.event.number }}" \
"${{ github.repository }}"
@@ -139,13 +139,14 @@ jobs:
env:
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
VIKUNJA_TOKEN: ${{ secrets.VIKUNJA_TOKEN }}
DEVX_VIKUNJA_PROJECT_ID: "8"
PYTHONPATH: src
HEAD_REF: ${{ github.head_ref }}
PR_TITLE: ${{ github.event.pull_request.title }}
REPOSITORY: ${{ github.repository }}
PR_NUMBER: ${{ github.event.number }}
run: |
python -m devx.ci.auto_merge \
python3 -m devx.ci.auto_merge \
"$HEAD_REF" \
"$PR_TITLE" \
"$REPOSITORY" \
+15 -14
View File
@@ -43,7 +43,7 @@ jobs:
id: check
env:
PYTHONPATH: src
run: python -m devx.ci.detect_release_commit
run: python3 -m devx.ci.detect_release_commit
validate-commit-msg:
needs: [detect-type]
@@ -63,7 +63,7 @@ jobs:
PYTHONPATH: src
run: |
git log -1 --format=%B > commit-msg.txt
python -m devx.ci.validate_commit_msg commit-msg.txt --branch master
python3 -m devx.ci.validate_commit_msg commit-msg.txt --branch master
rm -f commit-msg.txt
release:
@@ -88,7 +88,7 @@ jobs:
run: |
. .venv/bin/activate
export PATH="$HOME/.local/bin:$PATH"
python -m devx.ci.release
python3 -m devx.ci.release
- name: Notify on failure
if: failure()
env:
@@ -96,7 +96,7 @@ jobs:
PYTHONPATH: src
run: |
export PATH="$HOME/.local/bin:$PATH"
python -m devx.ci.notify_failure \
python3 -m devx.ci.notify_failure \
--repo "${{ github.repository }}" \
--run-id "${{ github.run_id }}" \
--workflow "post-merge/release" \
@@ -119,7 +119,7 @@ jobs:
PYTHONPATH: src
run: |
. .venv/bin/activate
python -m devx.ci.sync_wiki --repo "${{ github.repository }}" --strict
python3 -m devx.ci.sync_wiki --repo "${{ github.repository }}" --strict
- name: Notify on failure
if: failure()
env:
@@ -127,7 +127,7 @@ jobs:
PYTHONPATH: src
run: |
export PATH="$HOME/.local/bin:$PATH"
python -m devx.ci.notify_failure \
python3 -m devx.ci.notify_failure \
--repo "${{ github.repository }}" \
--run-id "${{ github.run_id }}" \
--workflow "post-merge/sync-wiki" \
@@ -155,7 +155,7 @@ jobs:
PRE_COMMIT_ALLOW_NO_CONFIG: "1"
run: |
. .venv/bin/activate
python -m devx.ci.push_badges
python3 -m devx.ci.push_badges
- name: Notify on failure
if: failure()
env:
@@ -163,7 +163,7 @@ jobs:
PYTHONPATH: src
run: |
export PATH="$HOME/.local/bin:$PATH"
python -m devx.ci.notify_failure \
python3 -m devx.ci.notify_failure \
--repo "${{ github.repository }}" \
--run-id "${{ github.run_id }}" \
--workflow "post-merge/badges" \
@@ -185,8 +185,9 @@ jobs:
- name: Update Vikunja task
env:
VIKUNJA_TOKEN: ${{ secrets.VIKUNJA_TOKEN }}
DEVX_VIKUNJA_PROJECT_ID: "8"
PYTHONPATH: src
run: python -m devx.ci.post_merge --git-sha "${{ github.sha }}"
run: python3 -m devx.ci.post_merge --git-sha "${{ github.sha }}"
- name: Notify on failure
if: failure()
env:
@@ -194,10 +195,10 @@ jobs:
PYTHONPATH: src
run: |
export PATH="$HOME/.local/bin:$PATH"
python -m devx.tools.install_tools --tool tea
python3 -m devx.tools.install_tools --tool tea
tea login add --name devx --url "${{ github.server_url }}" --token "$REPO_TOKEN" || true
tea login default devx || true
python -m devx.ci.notify_failure \
python3 -m devx.ci.notify_failure \
--repo "${{ github.repository }}" \
--run-id "${{ github.run_id }}" \
--workflow "post-merge/vikunja" \
@@ -218,7 +219,7 @@ jobs:
env:
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
PYTHONPATH: src
run: python -m devx.tools.configure_repo
run: python3 -m devx.tools.configure_repo
- name: Notify on failure
if: failure()
env:
@@ -226,10 +227,10 @@ jobs:
PYTHONPATH: src
run: |
export PATH="$HOME/.local/bin:$PATH"
python -m devx.tools.install_tools --tool tea
python3 -m devx.tools.install_tools --tool tea
tea login add --name devx --url "${{ github.server_url }}" --token "$REPO_TOKEN" || true
tea login default devx || true
python -m devx.ci.notify_failure \
python3 -m devx.ci.notify_failure \
--repo "${{ github.repository }}" \
--run-id "${{ github.run_id }}" \
--workflow "post-merge/configure-repo" \
+3 -3
View File
@@ -20,7 +20,7 @@ jobs:
- name: Install CI tools
run: |
export PATH="$HOME/.local/bin:$PATH"
python -m devx.tools.install_tools --tool git-cliff --tool tea
python3 -m devx.tools.install_tools --tool git-cliff --tool tea
- name: Configure tea login
env:
REPO_TOKEN: ${{ secrets.REPO_TOKEN }}
@@ -34,7 +34,7 @@ jobs:
PYTHONPATH: src
run: |
export PATH="$HOME/.local/bin:$PATH"
python -m devx.ci.publish "${{ github.ref_name }}" "${{ github.repository }}"
python3 -m devx.ci.publish "${{ github.ref_name }}" "${{ github.repository }}"
- name: Notify on failure
if: failure()
env:
@@ -42,7 +42,7 @@ jobs:
PYTHONPATH: src
run: |
export PATH="$HOME/.local/bin:$PATH"
python -m devx.ci.notify_failure \
python3 -m devx.ci.notify_failure \
--repo "${{ github.repository }}" \
--run-id "${{ github.run_id }}" \
--workflow "publish" \