Skip to content

github-ci: fix windows path #66

github-ci: fix windows path

github-ci: fix windows path #66

Workflow file for this run

name: Test actions
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
python-version:
- '3.10'
runs-on: ${{ matrix.os }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build exec (Linux & macOS)
run: |
pyinstaller --onefile --clean --windowed pyqt_helloworld/pyqt_helloworld.py
- name: Tar files
if: ${{ matrix.os != 'windows-latest' }}
run: |
tar -czvf artifact.tgz dist/*
rm -rf dist/*
mv artifact.tgz dist/
- name: Upload exe
uses: actions/upload-artifact@v3
with:
name: pyinstaller exe
path: |
dist