Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup Python virtual environment with an action #2

Merged
merged 2 commits into from
Jun 27, 2022

Conversation

NickVolynkin
Copy link
Contributor

@NickVolynkin NickVolynkin commented Jun 27, 2022

Made as a (partial) replacement for https://github.com/actions/setup-python,
particularly for using on ARM64 machines, where setup-python doesn't work.

Sometimes we don't need to set up the exact version of Python, but rather
need to set up a virtual environment and install a few packages in it.

If virtualenv is not found in the system, this action will install it
with pip install --user. This way it will not interfere with
system Python packages.

Resolve #3

@NickVolynkin NickVolynkin requested review from foxzi and artembo June 27, 2022 05:47
@NickVolynkin NickVolynkin force-pushed the setup-virtualenv branch 7 times, most recently from ca80cc8 to 511fa36 Compare June 27, 2022 06:17
@NickVolynkin NickVolynkin enabled auto-merge (rebase) June 27, 2022 06:22
@NickVolynkin NickVolynkin force-pushed the setup-virtualenv branch 4 times, most recently from 4a52957 to f1f9ff0 Compare June 27, 2022 06:51
@NickVolynkin NickVolynkin disabled auto-merge June 27, 2022 06:51
@NickVolynkin NickVolynkin marked this pull request as draft June 27, 2022 06:51
@NickVolynkin NickVolynkin marked this pull request as ready for review June 27, 2022 07:05
@NickVolynkin NickVolynkin enabled auto-merge (rebase) June 27, 2022 07:05
@NickVolynkin NickVolynkin disabled auto-merge June 27, 2022 07:05
Made as a (partial) replacement for https://github.com/actions/setup-python,
particularly for using on ARM64 machines, where setup-python doesn't work.

Sometimes we don't need to set up the exact version of Python, but rather
need to set up a virtual environment and install a few packages in it.

If `virtualenv` is not found in the system, this action will install it
with `pip install --user`. This way it will not interfere with
system Python packages.

Resolve #3
This check will comment right in the pull request on the lines
which have style violations.

Resolve a few found style violations.

Configure yamllint to skip the 'truthy' check because
otherwise it shows an error on completely fine line 4
in .github/workflows/yaml-lint.yml

See the docs in https://yamllint.readthedocs.io/en/stable/index.html
@NickVolynkin NickVolynkin linked an issue Jun 27, 2022 that may be closed by this pull request
@NickVolynkin NickVolynkin merged commit 470a3cc into master Jun 27, 2022
@NickVolynkin NickVolynkin deleted the setup-virtualenv branch June 27, 2022 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set up virtual environments on ARM64 machines
2 participants