Skip to content

Commit

Permalink
Fix github checks due to set-env deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
naiquevin committed Nov 22, 2020
1 parent e01462c commit 536e1a0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,14 @@ jobs:
- uses: actions/checkout@v2
- name: Pick tox environment to run
run: |
import os
import platform
import sys
major, minor, impl = sys.version_info[0], sys.version_info[1], platform.python_implementation()
print('::set-env name=TOXENV::' + ("py" if impl == "CPython" else "pypy") + ("{}{}".format(major, minor) if impl == "CPython" else ("3" if major == 3 else "")))
toxenv = ("py" if impl == "CPython" else "pypy") + ("{}{}".format(major, minor) if impl == "CPython" else ("3" if major == 3 else ""))
env_file = open(os.environ['GITHUB_ENV'], "a")
env_file.write("TOXENV={}\n".format(toxenv))
env_file.close()
shell: python
- name: Setup test suite
run: tox -vv --notest
Expand Down

0 comments on commit 536e1a0

Please sign in to comment.