Skip to content

Commit 47755fd

Browse files
committed
Isolate PyInstaller test
1 parent 664afec commit 47755fd

File tree

3 files changed

+28
-116
lines changed

3 files changed

+28
-116
lines changed

.github/workflows/test.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
PY_COLORS: 1 # For log color with pytest
1818

1919
jobs:
20-
tests:
20+
pytest:
2121
strategy:
2222
fail-fast: false
2323
matrix:
@@ -129,6 +129,29 @@ jobs:
129129
name: widget-img
130130
path: ./${{ env.TEST_IMG_OUTPUT_PATH}}/*.png
131131

132-
- name: Test freezing-pkg(PyInstaller)
133-
if: matrix.qt != 'none' && runner.os != 'Linux'
134-
run: poetry run python -m tools.test_freezing_lib
132+
pyinstaller:
133+
runs-on: ubuntu-latest
134+
steps:
135+
- uses: actions/checkout@v3
136+
- uses: actions/setup-python@v4
137+
id: setup-python
138+
with:
139+
python-version: '3.11'
140+
141+
- name: Cache ./.venv (poetry dependencies)
142+
id: cache-venv
143+
uses: actions/cache@v3
144+
with:
145+
path: .venv
146+
key: "\
147+
venv-test-PyInstaller-\
148+
${{ steps.setup-python.outputs.python-version }}"
149+
150+
- run: python -m venv .venv
151+
if: steps.cache-venv.outputs.cache-hit != 'true'
152+
153+
- name: Install Python dependencies
154+
run: python -m pip install -U PyInstaller PyQt6
155+
156+
- name: Test PyInstaller
157+
run: python -m tools.test_freezing_lib

poetry.lock

Lines changed: 1 addition & 111 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ sphinx-copybutton = "^0.5.0"
7474
optional = true
7575

7676
[tool.poetry.group.github-actions.dependencies]
77-
pyinstaller = "^5.6.1"
7877
pytest-github-actions-annotate-failures = "^0.1.7"
7978

8079
[build-system]

0 commit comments

Comments
 (0)