Skip to content

Commit

Permalink
Move pyinstaller test to test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfG committed Oct 11, 2023
1 parent 1249cdf commit 28b4847
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 35 deletions.
29 changes: 28 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

jobs:
test:
test-python-package:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -42,3 +42,30 @@ jobs:
- name: Test installation
run: |
ms2rescore --help
test-windows-installer:
# Only run on push to main (e.g., after PR merge)
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: "3.11"

- name: Install package and dependencies
run: |
python -m pip install --upgrade pip
pip install . pyinstaller
- name: Install Inno Setup
uses: crazy-max/ghaction-chocolatey@v1
with:
args: install innosetup -y --allow-unofficial --force

- name: Run pyinstaller
run: pyinstaller ./ms2rescore.spec --clean --noconfirm

- name: Test built exe
run: dist/ms2rescore/ms2rescore.exe
34 changes: 0 additions & 34 deletions .github/workflows/windows_installer.yml

This file was deleted.

0 comments on commit 28b4847

Please sign in to comment.