From: Daniele Varrazzo Date: Tue, 29 Jun 2021 01:57:36 +0000 (+0100) Subject: Run tests on windows X-Git-Tag: 3.0.dev0~4^2~15 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b1ca2bbdaedb3ed112a071a83d7f3b9136fa086;p=thirdparty%2Fpsycopg.git Run tests on windows --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1559162ea..90ce92ea9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -67,6 +67,7 @@ jobs: macos: name: Test on MacOS runs-on: macos-10.15 + strategy: fail-fast: false matrix: @@ -108,3 +109,45 @@ jobs: - name: Run tests (C implementation) run: tox -c psycopg_c -e ${{ matrix.python }} -- --color yes if: ${{ matrix.impl == 'c' }} + + + windows: + name: Test on Windows + runs-on: windows-2019 + strategy: + fail-fast: false + matrix: + include: + # - {impl: c, python: 3.6} + # - {impl: c, python: 3.7} + - {impl: c, python: 3.8} + # - {impl: c, python: 3.9} + - {impl: python, python: 3.9} + + env: + PSYCOPG_IMPL: ${{ matrix.impl }} + PSYCOPG_TEST_DSN: "host=127.0.0.1 dbname=postgres" + + steps: + - uses: actions/checkout@v2 + + - name: Start PostgreSQL service for test + run: | + $postgreSqlSvc = Get-Service "postgresql*" + Set-Service $postgreSqlSvc.Name -StartupType manual + $postgreSqlSvc.Start() + + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + + - name: Install tox + run: pip install tox + + - name: Run tests (Python implementation) + run: tox -c psycopg -e ${{ matrix.python }} -- --color yes + if: ${{ matrix.impl == 'python' }} + + - name: Run tests (C implementation) + run: tox -c psycopg_c -e ${{ matrix.python }} -- --color yes + if: ${{ matrix.impl == 'c' }}