Don't need to use venv in CI builds

This commit is contained in:
DevilXD committed 2024-01-20 13:15:11 +01:00
1 parent 0d72f1ebea
commit b655803bf5
1 file changed
+4 -16
+4 -16
View File
@@ -36,14 +36,10 @@ jobs:
with: with:
python-version: ${{env.PYTHON_VERSION}} python-version: ${{env.PYTHON_VERSION}}
- name: Set up Python virtual environment
run: |
python3 -m venv env
- name: Install project dependencies - name: Install project dependencies
run: | run: |
.\env\Scripts\activate python3 -m pip install wheel
python3 -m pip install wheel -r requirements.txt python3 -m pip install -r requirements.txt
- name: Install UPX - name: Install UPX
run: | run: |
@@ -54,12 +50,10 @@ jobs:
- name: Install PyInstaller - name: Install PyInstaller
run: | run: |
.\env\Scripts\activate
python3 -m pip install pyinstaller python3 -m pip install pyinstaller
- name: Create portable executable - name: Create portable executable
run: | run: |
.\env\Scripts\activate
pyinstaller build.spec pyinstaller build.spec
- name: Create release folder - name: Create release folder
@@ -105,18 +99,13 @@ jobs:
sudo apt update sudo apt update
sudo apt install gir1.2-appindicator3-0.1 libgirepository1.0-dev python3-tk 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 - name: Install project dependencies
run: | run: |
source ./env/bin/activate python3 -m pip install wheel
python3 -m pip install wheel -r requirements.txt python3 -m pip install -r requirements.txt
- name: Install PyInstaller - name: Install PyInstaller
run: | run: |
source ./env/bin/activate
python3 -m pip install pyinstaller 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. # 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 - name: Create portable executable
run: | run: |
source ./env/bin/activate
LD_LIBRARY_PATH=/tmp/libXft/lib xvfb-run --auto-servernum pyinstaller build.spec LD_LIBRARY_PATH=/tmp/libXft/lib xvfb-run --auto-servernum pyinstaller build.spec
- name: Show PyInstaller warnings - name: Show PyInstaller warnings