Skip to content

Commit 5bcc202

Browse files
committed
Add a test to ensure that the GUI module is importable
This is an extremely basic check to catch errors like using incompatible language features in GUI code which isn't imported by the CLI. This is a temporary measure until we implement #24.
1 parent 2850bf1 commit 5bcc202

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
python-version: ${{ matrix.python-version }}
2222
- name: Install dependencies
2323
run: |
24+
sudo apt-get install -y libegl1
2425
python -m pip install --upgrade pip
2526
pip install tox tox-gh-actions
2627
- name: Test with tox

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ commands =
8383
pip freeze
8484
labelle --version
8585
labelle --help
86+
python -c "import labelle.gui.gui; print('GUI import succeeded')"
8687
labelle --output console "single line"
8788
labelle --output console_inverted "inverted"
8889
labelle --output console multiple lines

0 commit comments

Comments
 (0)