Skip to content

Merge pull request #5 from grubyhs/feature/placzykowski/move-winget-a… #49

Merge pull request #5 from grubyhs/feature/placzykowski/move-winget-a…

Merge pull request #5 from grubyhs/feature/placzykowski/move-winget-a… #49

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python package
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12.3"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install --upgrade pyinstaller
- name: Compile to exe
run: |
pyinstaller --onefile update-pc-script.py
pyinstaller --onefile update-pc-script-auto.py
- uses: actions/upload-artifact@v4
with:
name: update-pc-script-${{ github.run_number }}
path: dist/update-pc-script.exe
compression-level: 0 # no compression
- uses: actions/upload-artifact@v4
with:
name: update-pc-script-auto-${{ github.run_number }}
path: dist/update-pc-script-auto.exe
compression-level: 0 # no compression