]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
tox: use the github action "python" value as toxenv name
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 2 Mar 2021 01:28:50 +0000 (02:28 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 2 Mar 2021 01:28:50 +0000 (02:28 +0100)
.github/workflows/tests.yml
psycopg3/tox.ini
psycopg3_c/tox.ini

index f62433313f7f3df6c9150d2225d9d341fde69d11..e1c259a4c3857f565be5fc6faff1840fbd836a2c 100644 (file)
@@ -19,13 +19,10 @@ jobs:
         include:
           - postgres: 11
             python: 3.6
-            toxenv: py36
           - postgres: 12
             python: 3.7
-            toxenv: py37
           - postgres: 12
             python: 3.8
-            toxenv: py38
 
     env:
       PSYCOPG3_IMPL: python
@@ -56,7 +53,7 @@ jobs:
     - name: install tox
       run: pip install tox
     - name: run tests
-      run: tox -c psycopg3 -e ${{ matrix.toxenv }}
+      run: tox -c psycopg3 -e ${{ matrix.python }}
 
   c:
     name: C implementation
@@ -68,13 +65,10 @@ jobs:
         include:
           - postgres: 10
             python: 3.6
-            toxenv: py36
           - postgres: 11
             python: 3.7
-            toxenv: py37
           - postgres: 12
             python: 3.8
-            toxenv: py38
 
     env:
       PSYCOPG3_IMPL: c
@@ -108,4 +102,4 @@ jobs:
     - name: install tox
       run: pip install tox
     - name: run tests
-      run: tox -c psycopg3_c -e ${{ matrix.toxenv }}
+      run: tox -c psycopg3_c -e ${{ matrix.python }}
index 28fa9ea4df162350188a5928cb405f0b874c7359..8e4bf075f0632821a5439a55d81db66399f61b2f 100644 (file)
@@ -1,8 +1,8 @@
 [tox]
-envlist = py{36,37,38}
+envlist = {3.6,3.7,3.8}
 isolated_build = True
 
-[testenv:py{36,37,38}]
+[testenv:{3.6,3.7,3.8}]
 commands =
     pytest ../tests {posargs}
 passenv = PG* PSYCOPG3_TEST_DSN PYTEST_ADDOPTS PSYCOPG3_IMPL
index 87eec1540a78a09a2c549495ac38236dd148174a..c7e4d06acedf4a8fd3bc8bb3ecd2f92f062be209 100644 (file)
@@ -1,5 +1,5 @@
 [tox]
-envlist = py{36,37,38}
+envlist = {3.6,3.7,3.8}
 isolated_build = True
 
 [testenv]