Core: Add PyAwaitable_AddExpr for convenience
#369
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| concurrency: | |
| group: test-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| env: | |
| PYTHONUNBUFFERED: "1" | |
| FORCE_COLOR: "1" | |
| PYTHONIOENCODING: "utf8" | |
| jobs: | |
| changes: | |
| name: Check for changed files | |
| runs-on: ubuntu-latest | |
| outputs: | |
| source: ${{ steps.filter.outputs.source }} | |
| tests: ${{ steps.filter.outputs.tests }} | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| source: | |
| - 'src/**' | |
| tests: | |
| - 'tests/**' | |
| run-tests: | |
| needs: changes | |
| if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.tests == 'true' }} | |
| name: Python ${{ matrix.python-version }} on ${{ startsWith(matrix.os, 'macos-') && 'macOS' || startsWith(matrix.os, 'windows-') && 'Windows' || 'Linux' }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Hatch | |
| uses: pypa/hatch@install | |
| - name: Run tests | |
| run: hatch test | |
| - name: Run build test for scikit-build-core | |
| run: hatch run test-build:scikit-build-core | |
| - name: Run build test for meson-python | |
| run: hatch run test-build:meson | |
| tests-pass: | |
| runs-on: ubuntu-latest | |
| name: All tests passed | |
| if: always() | |
| needs: | |
| - run-tests | |
| steps: | |
| - name: Check whether all tests passed | |
| uses: re-actors/alls-green@release/v1 | |
| with: | |
| jobs: ${{ toJSON(needs) }} | |
| allowed-skips: ${{ toJSON(needs) }} |