Update main.py #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python application | |
on: | |
push: | |
paths: | |
- 'Local-Windows/main.py' | |
pull_request: | |
paths: | |
- 'Local-Windows/main.py' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r Local-Windows/requirements.txt | |
pip install pyinstaller | |
- name: Build exe with PyInstaller | |
run: | | |
cd Local-Windows | |
pyinstaller --onefile main.py | |
- name: Upload EXE as Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: my-application-exe | |
path: Local-Windows/dist/main.exe |