|
| 1 | +name: Platform smoke |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: ["main", "dev"] |
| 6 | + pull_request: |
| 7 | + branches: ["main", "dev"] |
| 8 | + |
| 9 | +permissions: |
| 10 | + contents: read |
| 11 | + |
| 12 | +jobs: |
| 13 | + stable-api: |
| 14 | + strategy: |
| 15 | + fail-fast: false |
| 16 | + matrix: |
| 17 | + os: [windows-2022, ubuntu-22.04, macos-14] |
| 18 | + python-version: ["3.10", "3.14"] |
| 19 | + runs-on: ${{ matrix.os }} |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v4 |
| 22 | + - uses: actions/setup-python@v5 |
| 23 | + with: |
| 24 | + python-version: ${{ matrix.python-version }} |
| 25 | + - run: python -m pip install -e . |
| 26 | + - name: Import stable API and generate platform-neutral code |
| 27 | + run: >- |
| 28 | + python -c "import je_auto_control.api as ac; |
| 29 | + compile(ac.generate_code([['AC_screen_size']], style='actions'), |
| 30 | + '<generated>', 'exec')" |
| 31 | + - name: Create headless diagnostic bundle |
| 32 | + run: >- |
| 33 | + python -c "from je_auto_control.api import |
| 34 | + FailureBundleOptions, create_failure_bundle; |
| 35 | + create_failure_bundle('platform-smoke.zip', |
| 36 | + options=FailureBundleOptions(screenshot=False))" |
| 37 | + - uses: actions/upload-artifact@v4 |
| 38 | + if: always() |
| 39 | + with: |
| 40 | + name: platform-smoke-${{ matrix.os }}-${{ matrix.python-version }} |
| 41 | + path: platform-smoke.zip |
| 42 | + if-no-files-found: warn |
0 commit comments