From: Oleg Broytman Date: Fri, 2 Dec 2022 17:53:43 +0000 (+0300) Subject: CI(GHActions): Set `TOXENV`; remove `tox-gh-actions` X-Git-Tag: 3.1.0.post4~2 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=040fecaaaddd951cafc930ce8619ee710afa5b34;p=mimedecode.git CI(GHActions): Set `TOXENV`; remove `tox-gh-actions` --- 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