From: Daniele Varrazzo Date: Sat, 31 Dec 2022 03:07:39 +0000 (+0000) Subject: ci: include a single test with the oldest dependencies versions X-Git-Tag: pool-3.2.0~145^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2136c44d51c2f2be6a0ff0414b6651b3e01c18a;p=thirdparty%2Fpsycopg.git ci: include a single test with the oldest dependencies versions --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 94505cedb..e9ee92d80 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -41,15 +41,15 @@ jobs: - {impl: python, python: "3.9", ext: dns, postgres: "postgres:14"} - {impl: python, python: "3.9", ext: postgis, postgres: "postgis/postgis"} + # Test with minimum dependencies versions + - {impl: c, python: "3.7", ext: min, postgres: "postgres:15"} + env: PSYCOPG_IMPL: ${{ matrix.impl }} DEPS: ./psycopg[test] ./psycopg_pool PSYCOPG_TEST_DSN: "host=127.0.0.1 user=postgres password=password" MARKERS: "" - # Enable to run tests using the minimum version of dependencies. - # PIP_CONSTRAINT: ${{ github.workspace }}/tests/constraints.txt - steps: - uses: actions/checkout@v3 @@ -86,6 +86,13 @@ jobs: echo "DEPS=$DEPS shapely" >> $GITHUB_ENV echo "MARKERS=$MARKERS postgis" >> $GITHUB_ENV + - name: Configure to use the oldest dependencies + if: ${{ matrix.ext == 'min' }} + run: | + echo "DEPS=$DEPS dnspython shapely" >> $GITHUB_ENV + echo "PIP_CONSTRAINT=${{ github.workspace }}/tests/constraints.txt" \ + >> $GITHUB_ENV + - name: Install Python packages run: pip install $DEPS @@ -123,9 +130,6 @@ jobs: # pproxy-based tests fail too, with the proxy not coming up in 2s. NOT_MARKERS: "timing proxy mypy" - # Enable to run tests using the minimum version of dependencies. - # PIP_CONSTRAINT: ${{ github.workspace }}/tests/constraints.txt - steps: - uses: actions/checkout@v3 @@ -179,9 +183,6 @@ jobs: # On windows pproxy doesn't seem very happy. Also a few timing test fail. NOT_MARKERS: "timing proxy mypy" - # Enable to run tests using the minimum version of dependencies. - # PIP_CONSTRAINT: ${{ github.workspace }}/tests/constraints.txt - defaults: run: shell: bash