Reconnect the Python async client's owned connection after an interruption #383
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: Test | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: '24' | |
| - name: Install TypeScript dependencies | |
| working-directory: sdks/typescript | |
| run: npm ci | |
| - name: Run checks | |
| run: make check | |
| - name: Restore pg_cron test image cache | |
| id: cache-pgcron-image | |
| uses: actions/cache@v4 | |
| with: | |
| path: /tmp/absurd-test-postgres16-pgcron-16-1.6.7-faketime6.tar | |
| key: ${{ runner.os }}-pgcron-image-${{ hashFiles('tests/docker/pg16-pgcron/Dockerfile') }} | |
| - name: Load cached pg_cron test image | |
| if: steps.cache-pgcron-image.outputs.cache-hit == 'true' | |
| run: docker load --input /tmp/absurd-test-postgres16-pgcron-16-1.6.7-faketime6.tar | |
| - name: Build and cache pg_cron test image | |
| if: steps.cache-pgcron-image.outputs.cache-hit != 'true' | |
| run: | | |
| docker build -t absurd-test-postgres16-pgcron:16-1.6.7-faketime6 tests/docker/pg16-pgcron | |
| docker save absurd-test-postgres16-pgcron:16-1.6.7-faketime6 --output /tmp/absurd-test-postgres16-pgcron-16-1.6.7-faketime6.tar | |
| - name: Run tests | |
| run: make test |