Skip to content

Update sstube-workflow.yml #29

Update sstube-workflow.yml

Update sstube-workflow.yml #29

name: SSTube Build and Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Upgrade pip and install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
flake8 --max-line-length=88 .
- name: Run tests
run: |
pip install pytest
pytest tests
- name: Build executable with PyInstaller
run: |
pip install pyinstaller
pyinstaller --onefile --windowed src/SSTube.py
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: SSTube-executable
path: dist/SSTube.exe