Skip to content

Commit

Permalink
Updated Pipeline To Support Multi-OS & Added Support for PyPI Release
Browse files Browse the repository at this point in the history
  • Loading branch information
coldsofttech committed Apr 13, 2024
1 parent 503039c commit 5cf7766
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,19 @@ jobs:
pip install pytest
pip install -r requirements.txt
- name: Display Value
- name: Install Dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
echo $DISPLAY
sudo apt-get install -y python3-tk
sudo apt-get install -y xvfb
- name: Start Virtual Display (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
# Xvfb :99 -screen 0 1024x768x16 &
# export DISPLAY=:99
ps aux | grep xvfb
xvfb-run --auto-servernum --server-args='-screen 0 1024x768x24' pytest tests
- name: Run Tests
run: |
Expand Down
7 changes: 4 additions & 3 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,10 @@ def _open_license(self, event) -> None:


def get_root_window() -> tk.Tk:
if platform.system().lower() == 'linux':
setting = os.environ.__getitem__('DISPLAY')
return tk.Tk(screenName=setting)
# if platform.system().lower() == 'linux':
# setting = os.environ.__getitem__('DISPLAY')
# return tk.Tk(screenName=setting)
return tk.Tk()


def display_settings():
Expand Down

0 comments on commit 5cf7766

Please sign in to comment.