Skip to content

Commit

Permalink
Run tests with pytest before Windows and macOS builds
Browse files Browse the repository at this point in the history
This gives better and more detailed test output
  • Loading branch information
phw committed Apr 30, 2024
1 parent 05557a3 commit df7036a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/package-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ jobs:
PYINSTALLER_COMPILE_BOOTLOADER: "1"
- name: Run tests
timeout-minutes: 30
run: |
python3 setup.py test
run: pytest --verbose
- name: Prepare code signing certificate
run: |
if [ -n "$CODESIGN_MACOS_P12_URL" ] && [ -n "$AWS_ACCESS_KEY_ID" ]; then
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/package-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
python setup.py patch_version --platform=$Env:BUILD_NUMBER.$(git rev-parse --short HEAD)
- name: Run tests
timeout-minutes: 30
run: python setup.py test
run: pytest --verbose
- name: Prepare code signing certificate
if: matrix.type != 'store-app'
run: |
Expand Down
1 change: 1 addition & 0 deletions requirements-build.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
Babel>=2.10.0
PyInstaller==6.5.0
pytest>=8.1
setuptools>=62.4.0

0 comments on commit df7036a

Please sign in to comment.