From: Daniele Varrazzo Date: Sun, 14 Nov 2021 00:10:19 +0000 (+0100) Subject: Fix Python version in Windows test X-Git-Tag: 3.0.4~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9cc7a791a0ed706927b64671d5e7eda663a2c99;p=thirdparty%2Fpsycopg.git Fix Python version in Windows test --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0df80e206..972504eec 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -196,15 +196,19 @@ jobs: $PgSvc.Start() - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} - name: Install tox run: pip install tox wheel - name: Run tests (Python implementation) if: ${{ matrix.impl == 'python' }} + # The zoneinfo warning ignore is only required on Python 3.6 run: > tox -c psycopg -e ${{ matrix.python }} -- --color yes -W error + -W ignore::DeprecationWarning:backports.zoneinfo._common # Build a wheel package of the C extensions. # If the wheel is not delocated, import fails with some dll not found @@ -228,7 +232,9 @@ jobs: &"pip" install @(Get-ChildItem wheelhouse\*.whl) # Fix the path for the tests using ctypes $env:Path = "C:\Program Files\PostgreSQL\14\bin\;$env:Path" - pytest --color yes -W error + # The zoneinfo warning ignore is only required on Python 3.6 + pytest --color yes -W error ` + -W ignore::DeprecationWarning:backports.zoneinfo._common # }}}