mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-09-29 18:38:02 +03:00
Gate publication on source regression tests
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -24,6 +24,10 @@ defaults:
|
||||
shell: bash
|
||||
|
||||
jobs:
|
||||
source-tests:
|
||||
name: Source regression tests
|
||||
uses: ./.github/workflows/source-tests.yml
|
||||
|
||||
build-distribution:
|
||||
name: Build distribution
|
||||
runs-on: ubuntu-latest
|
||||
@@ -60,6 +64,7 @@ jobs:
|
||||
name: Publish Python distribution to PyPI
|
||||
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
|
||||
needs:
|
||||
- source-tests
|
||||
- build-distribution
|
||||
- deploy-binaries
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
name: Source regression tests
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
unittest:
|
||||
name: Source tests on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
timeout-minutes: 30
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-22.04, windows-2025, macos-14]
|
||||
env:
|
||||
QT_QPA_PLATFORM: offscreen
|
||||
PYTHONUTF8: "1"
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-python@v7
|
||||
with:
|
||||
python-version: "3.13"
|
||||
- name: Install Linux Qt runtime libraries
|
||||
if: runner.os == 'Linux'
|
||||
run: sudo apt-get update && sudo apt-get install -y libegl1 libopengl0
|
||||
- name: Install source test dependencies
|
||||
run: python -m pip install -r requirements.txt "PySide6-Essentials==6.8.3" "PySide6-Addons==6.8.3"
|
||||
- name: Run isolated behavioral and resource tests
|
||||
run: python -m unittest discover -s tests -v
|
||||
Reference in New Issue
Block a user