File: tests.yml

package info (click to toggle)
pygresql 1%3A6.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,944 kB
  • sloc: python: 15,052; ansic: 5,730; makefile: 16; sh: 10
file content (69 lines) | stat: -rw-r--r-- 2,059 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Run PyGreSQL test matrix

# this has been shamelessly copied from Psycopg

on:
  push:
  pull_request:

jobs:
  tests:
    name: Unit tests run
    runs-on: ubuntu-22.04

    strategy:
      fail-fast: false
      matrix:
        include:
          - { python: "3.7", postgres: "11" }
          - { python: "3.8", postgres: "12" }
          - { python: "3.9", postgres: "13" }
          - { python: "3.10", postgres: "14" }
          - { python: "3.11", postgres: "15" }
          - { python: "3.12", postgres: "16" }
          - { python: "3.13", postgres: "17" }

          # Opposite extremes of the supported Py/PG range, other architecture
          - { python: "3.7", postgres: "17", architecture: "x86" }
          - { python: "3.8", postgres: "16", architecture: "x86" }
          - { python: "3.9", postgres: "15", architecture: "x86" }
          - { python: "3.10", postgres: "14", architecture: "x86" }
          - { python: "3.11", postgres: "13", architecture: "x86" }
          - { python: "3.12", postgres: "12", architecture: "x86" }
          - { python: "3.13", postgres: "11", architecture: "x86" }

    env:
      PYGRESQL_DB: test
      PYGRESQL_HOST: 127.0.0.1
      PYGRESQL_USER: test
      PYGRESQL_PASSWD: test

    services:
      postgresql:
        image: postgres:${{ matrix.postgres }}
        env:
          POSTGRES_USER: test
          POSTGRES_PASSWORD: test
        ports:
          - 5432:5432
        # Set health checks to wait until postgres has started
        options: >-
          --health-cmd pg_isready
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5

    steps:
      - name: Check out repository
        uses: actions/checkout@v4
      - name: Install tox
        run: pip install tox
      - name: Setup Python
        uses: actions/setup-python@v5
        with:
          python-version: ${{ matrix.python }}
      - name: Run tests
        env:
          MATRIX_PYTHON: ${{ matrix.python }}
        run: tox -e py${MATRIX_PYTHON/./}
        timeout-minutes: 5