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 fd05968 commit 308ef97
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,6 @@ jobs:
pip install pytest
pip install -r requirements.txt
- name: Install Dependencies (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
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
- name: Run Tests
run: |
pytest tests -vv -rEPW -o pytest_collection_order=alphabetical --cache-clear --color=yes
Expand Down
4 changes: 4 additions & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ def _open_license(self, event) -> None:


def main():
if os.environ.get('DISPLAY', '') == '':
print('No display found. Using: 0.0')
os.environ.__setitem__('DISPLAY', ':0.0')

root = tk.Tk()
M3U8DownloaderUI(root)
root.mainloop()
Expand Down

0 comments on commit 308ef97

Please sign in to comment.