diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index c26df69..176375b 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -3,12 +3,14 @@ name: CI on: [push] permissions: - contents: write - pull-requests: write - + contents: write + pull-requests: write + jobs: test: runs-on: ubuntu-latest + timeout-minute: 10000 # Very high timeout for label name testing + name: Python ${{ matrix.python-version }} sample with Postgres ${{ matrix.postgres-version }} strategy: matrix: @@ -22,14 +24,7 @@ jobs: 'pypy-3.9', 'pypy-3.10', ] - postgres-version: - [ - '13', - '14', - '15', - '16', - '17', - ] + postgres-version: ['13', '14', '15', '16', '17'] continue-on-error: true services: database: @@ -75,19 +70,18 @@ jobs: # path: junit/test-results-${{ matrix.python-version }}.xml # if: ${{ always() }} - merge: runs-on: ubuntu-latest needs: [test] if: github.actor == 'dependabot[bot]' # Detect that the PR author is dependabot steps: - - uses: actions/checkout@v4 - - name: Enable auto-merge for Dependabot PRs - run: gh pr merge --auto --merge "$PR_URL" # Use Github CLI to merge automatically the PR - env: - PR_URL: ${{github.event.pull_request.html_url}} - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - + - uses: actions/checkout@v4 + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --merge "$PR_URL" # Use Github CLI to merge automatically the PR + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + release: runs-on: ubuntu-latest if: "startsWith(github.ref, 'refs/tags/')"