]> git.phdru.name Git - mimedecode.git/commitdiff
CI(GHActions): Set `TOXENV`; remove `tox-gh-actions`
authorOleg Broytman <phd@phdru.name>
Fri, 2 Dec 2022 17:53:43 +0000 (20:53 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 10 Jul 2023 17:11:43 +0000 (20:11 +0300)
.github/workflows/run-tests.yaml

index b62756aaa383a89d0b5d6defad0fe7a3cd7221b9..4db3d8e3fdfd19450016c426111e6cdb194216a4 100644 (file)
@@ -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