tox-gh-actions icon indicating copy to clipboard operation
tox-gh-actions copied to clipboard

Multi-platform support

Open ymyzk opened this issue 6 years ago • 2 comments
trafficstars

Switch environments based on platforms (Linux, macOS, Windows)

ymyzk avatar Sep 17 '19 14:09 ymyzk

It seems GitHub Actions doesn't provide a platform type via environment variables: https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables

So, it's difficult to detect it from the plugin side. We probably need to use #20 and pass platform as an environment variable by updating the GitHub Action's configuration.

ymyzk avatar Mar 13 '20 13:03 ymyzk

It seems GitHub Actions doesn't provide a platform type via environment variables:

What about the RUNNER_OS variable? Would that work?

Apart from that, what would be wrong with using Python's platform.system()?

bittner avatar May 22 '23 19:05 bittner