Chore: Add package publishing workflow #6
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: CI | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| jobs: | |
| style: | |
| name: Style | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: "read" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }}-style | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Base | |
| uses: ./.github/actions/setup-base | |
| - name: Check style | |
| run: make style | |
| unit-tests: | |
| name: Unit tests | |
| runs-on: ubuntu-latest | |
| needs: style | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: "read" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }}-unit-tests-${{ matrix.python_version }} | |
| cancel-in-progress: true | |
| strategy: | |
| matrix: | |
| python_version: | |
| - '3.9' | |
| - '3.10' | |
| - '3.11' | |
| - '3.12' | |
| - '3.13' | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Base | |
| uses: ./.github/actions/setup-base | |
| with: | |
| python-version: ${{ matrix.python_version }} | |
| - name: Run Unit Tests | |
| run: make test | |
| integration-tests: | |
| name: Integration Tests | |
| runs-on: ubuntu-latest | |
| needs: style | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: "read" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }}-integration-tests | |
| cancel-in-progress: true | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Base | |
| uses: ./.github/actions/setup-base | |
| - name: Checkout upstream SQLMesh | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: TobikoData/sqlmesh | |
| ref: refs/heads/main | |
| path: _sqlmesh_upstream | |
| - name: Run Integration Tests | |
| run: make integration-test |