Add some workflow/actions #1
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: | |
| pull_request: | |
| push: | |
| workflow_dispatch: | |
| workflow_call: | |
| jobs: | |
| black_formatting: | |
| name: Black Format Linting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Prepare common Python build environment | |
| uses: ./.github/actions/python-build-env-setup | |
| - name: 'Nox: Python Black' | |
| run: | | |
| nox -s black_lint | |
| pytest_all: | |
| name: PyTest with Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ['3.10', '3.11', '3.12', '3.13'] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Prepare common Python build environment | |
| uses: ./.github/actions/python-build-env-setup | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: "Nox: Pytest ${{ matrix.python-version }}" | |
| run: | | |
| nox -s pytest-${{ matrix.python-version }} |