feat(workflows): Use python3 for venv and version check
Updated the GitHub Actions workflow in `.forgejo/workflows/release.yml` to explicitly use `python3` instead of `python` for both version checking and virtual environment setup. This change ensures compatibility and clarity across environments where `python` might still point to Python 2.x, preventing potential conflicts and erasing ambiguity. The adjustment aligns with modern best practices, acknowledging the widespread transition to Python 3 and its tooling.
This commit is contained in:
parent
d57a7367ab
commit
c33efd2e73
1 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- "*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
|
@ -23,8 +23,8 @@ jobs:
|
||||||
|
|
||||||
- name: Set up Python environment
|
- name: Set up Python environment
|
||||||
run: |
|
run: |
|
||||||
python -V
|
python3 -V
|
||||||
python -m venv venv
|
python3 -m venv venv
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
pip install -U pip
|
pip install -U pip
|
||||||
pip install .[all]
|
pip install .[all]
|
||||||
|
@ -45,7 +45,7 @@ jobs:
|
||||||
|
|
||||||
- name: Set up Python environment
|
- name: Set up Python environment
|
||||||
run: |
|
run: |
|
||||||
python -m venv venv
|
python3 -m venv venv
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
||||||
- name: Install publishing tools
|
- name: Install publishing tools
|
||||||
|
|
Loading…
Reference in a new issue