This commit is contained in:
@@ -21,6 +21,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: "3.13"
|
python-version: "3.13"
|
||||||
|
|
||||||
|
- name: Install Qt runtime libraries
|
||||||
|
run: |
|
||||||
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
|
apt-get update && apt-get install -y libgl1
|
||||||
|
else
|
||||||
|
sudo apt-get update && sudo apt-get install -y libgl1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
@@ -31,5 +39,7 @@ jobs:
|
|||||||
python -m py_compile app_version.py main.py build.py updater_gui.py tests/test_auto_update_service.py tests/test_chat_actions.py tests/test_main_contracts.py tests/test_token_store.py tests/test_update_reentry_runtime.py tests/test_update_service.py tests/test_updater_gui.py
|
python -m py_compile app_version.py main.py build.py updater_gui.py tests/test_auto_update_service.py tests/test_chat_actions.py tests/test_main_contracts.py tests/test_token_store.py tests/test_update_reentry_runtime.py tests/test_update_service.py tests/test_updater_gui.py
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
|
env:
|
||||||
|
QT_QPA_PLATFORM: offscreen
|
||||||
run: |
|
run: |
|
||||||
python -m unittest discover -s tests -p "test_*.py" -v
|
python -m unittest discover -s tests -p "test_*.py" -v
|
||||||
|
|||||||
@@ -68,6 +68,17 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
docker info --format '{{.OSType}}' | grep -qx linux
|
docker info --format '{{.OSType}}' | grep -qx linux
|
||||||
|
|
||||||
|
- name: Install Qt runtime libraries
|
||||||
|
if: steps.check_release.outputs.publish == 'true'
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
|
apt-get update && apt-get install -y libgl1
|
||||||
|
else
|
||||||
|
sudo apt-get update && sudo apt-get install -y libgl1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Install test dependencies
|
- name: Install test dependencies
|
||||||
if: steps.check_release.outputs.publish == 'true'
|
if: steps.check_release.outputs.publish == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
@@ -65,6 +65,17 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
docker info --format '{{.OSType}}' | grep -qx linux
|
docker info --format '{{.OSType}}' | grep -qx linux
|
||||||
|
|
||||||
|
- name: Install Qt runtime libraries
|
||||||
|
if: steps.check_release.outputs.publish == 'true'
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if [ "$(id -u)" -eq 0 ]; then
|
||||||
|
apt-get update && apt-get install -y libgl1
|
||||||
|
else
|
||||||
|
sudo apt-get update && sudo apt-get install -y libgl1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Install test dependencies
|
- name: Install test dependencies
|
||||||
if: steps.check_release.outputs.publish == 'true'
|
if: steps.check_release.outputs.publish == 'true'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user