ymyzk / tox-gh-actions

Seamless integration of tox into GitHub Actions for tox 3 and 4
MIT License
250 stars 25 forks source link

Multi-platform support #6

Open ymyzk opened 5 years ago

ymyzk commented 5 years ago

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

ymyzk commented 4 years ago

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.

bittner commented 1 year ago

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()?