From 040fecaaaddd951cafc930ce8619ee710afa5b34 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 2 Dec 2022 20:53:43 +0300 Subject: [PATCH] CI(GHActions): Set `TOXENV`; remove `tox-gh-actions` --- .github/workflows/run-tests.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index b62756a..4db3d8e 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -32,9 +32,22 @@ jobs: python --version python -m pip install --upgrade pip setuptools wheel pip --version - pip install --upgrade virtualenv tox tox-gh-actions + pip install --upgrade virtualenv tox + - name: Set TOXENV + run: | + import os, sys + if hasattr(sys, 'pypy_version_info'): + toxenv = 'pypy' + else: + pyver = '%d%d' % tuple(sys.version_info[:2]) + toxenv = 'py%s' % pyver + with open(os.environ['GITHUB_ENV'], 'a') as f: + f.write('TOXENV=' + toxenv + '\n') + shell: python + - name: Run tox targets for ${{ matrix.python-version }} run: | + python -c "import os; print(os.environ['TOXENV'])" tox --version tox -- 2.39.5