Don't need to use venv in CI builds

This commit is contained in:
DevilXD
2024-01-20 13:15:11 +01:00
parent 0d72f1ebea
commit b655803bf5

View File

@@ -27,7 +27,7 @@ jobs:
- name: Append git revision to project version
run: |
(Get-Content version.py) `
-Replace '^__version__\s*=\s*"[^"]+', "`$0.${{ steps.vars.outputs.sha_short }}" |`
-Replace '^__version__\s*=\s*"[^"]+', "`$0.${{steps.vars.outputs.sha_short}}" |`
Out-File version.py
# Ensure Python version
@@ -36,14 +36,10 @@ jobs:
with:
python-version: ${{env.PYTHON_VERSION}}
- name: Set up Python virtual environment
run: |
python3 -m venv env
- name: Install project dependencies
run: |
.\env\Scripts\activate
python3 -m pip install wheel -r requirements.txt
python3 -m pip install wheel
python3 -m pip install -r requirements.txt
- name: Install UPX
run: |
@@ -54,12 +50,10 @@ jobs:
- name: Install PyInstaller
run: |
.\env\Scripts\activate
python3 -m pip install pyinstaller
- name: Create portable executable
run: |
.\env\Scripts\activate
pyinstaller build.spec
- name: Create release folder
@@ -105,18 +99,13 @@ jobs:
sudo apt update
sudo apt install gir1.2-appindicator3-0.1 libgirepository1.0-dev python3-tk
- name: Set up Python virtual environment
run: |
python3 -m venv env
- name: Install project dependencies
run: |
source ./env/bin/activate
python3 -m pip install wheel -r requirements.txt
python3 -m pip install wheel
python3 -m pip install -r requirements.txt
- name: Install PyInstaller
run: |
source ./env/bin/activate
python3 -m pip install pyinstaller
# NOTE: Remove this step if/once libxft gets updated to 2.3.5 or newer on Ubuntu 20.04, which currently has 2.3.3.
@@ -133,7 +122,6 @@ jobs:
- name: Create portable executable
run: |
source ./env/bin/activate
LD_LIBRARY_PATH=/tmp/libXft/lib xvfb-run --auto-servernum pyinstaller build.spec
- name: Show PyInstaller warnings
@@ -176,7 +164,7 @@ jobs:
- name: Append git revision to project version
run: |
sed -ri "s/^__version__\s*=\s*\"[^\"]+/\0.${{ steps.vars.outputs.sha_short }}/" version.py
sed -ri "s/^__version__\s*=\s*\"[^\"]+/\0.${{steps.vars.outputs.sha_short}}/" version.py
- name: Install system dependencies
run: |