From: Oleg Broytman Date: Mon, 30 Aug 2021 00:04:44 +0000 (+0300) Subject: CI(GHActions): Run selected environments X-Git-Tag: 0.1.6~9^2~2 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=a70c4953b22b0495b09ccf843d6f507e6837f943;p=m_librarian.git CI(GHActions): Run selected environments Stop using `tox-gh-action`. --- diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 3e290db..76d8b09 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -39,6 +39,20 @@ jobs: python -m pip install --upgrade "pip<21.0" "setuptools<45" wheel pip --version python -m pip --version - python -m pip install --upgrade virtualenv tox tox-gh-actions - - name: Run tox targets for ${{ matrix.python-version }} - run: python -m tox + python -m pip install --upgrade virtualenv tox + - name: Set TOXENV + run: | + import os, sys + pyver = '%d%d' % tuple(sys.version_info[:2]) + toxenv = 'py%s-sqlite' % pyver + if os.name == 'posix': + toxenv += ',py%s-flake8' % pyver + elif os.name == 'nt': + toxenv += '-w32' + with open(os.environ['GITHUB_ENV'], 'a') as f: + f.write('TOXENV=' + toxenv + '\n') + shell: python + - name: Run tox + run: | + python -c "import os; print(os.environ['TOXENV'])" + python -m tox