From: Daniele Varrazzo Date: Tue, 2 Mar 2021 01:28:50 +0000 (+0100) Subject: tox: use the github action "python" value as toxenv name X-Git-Tag: 3.0.dev0~94^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e43a0cd21cd0cbef47a1ab4ca4b7296beda094cc;p=thirdparty%2Fpsycopg.git tox: use the github action "python" value as toxenv name --- diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f62433313..e1c259a4c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 }} diff --git a/psycopg3/tox.ini b/psycopg3/tox.ini index 28fa9ea4d..8e4bf075f 100644 --- a/psycopg3/tox.ini +++ b/psycopg3/tox.ini @@ -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 diff --git a/psycopg3_c/tox.ini b/psycopg3_c/tox.ini index 87eec1540..c7e4d06ac 100644 --- a/psycopg3_c/tox.ini +++ b/psycopg3_c/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{36,37,38} +envlist = {3.6,3.7,3.8} isolated_build = True [testenv]