Crazy Stab Lab Mac Lib experiment 🗡️ #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Crazy Stab Lab Mac Lib experiment 🗡️ | |
# Controls when the action will run. | |
on: | |
workflow_dispatch: | |
jobs: | |
lib_tests_on_mac: | |
runs-on: [self-hosted, macOS] | |
timeout-minutes: 120 | |
steps: | |
- name: Setup python virtualenv | |
run: | | |
export PYENV_ROOT="$HOME/.pyenv" | |
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" | |
eval "$(pyenv init -)" | |
- name: Setup 3.12.0 environment | |
run: | | |
PYTHON_VERSION="3.12.0" # Specify the Python version you need | |
if ! pyenv versions | grep -q "$PYTHON_VERSION"; then | |
pyenv install $PYTHON_VERSION | |
fi | |
- name: Setup 3.9.0 environment | |
run: | | |
PYTHON_VERSION="3.9.0" # Specify the Python version you need | |
if ! pyenv versions | grep -q "$PYTHON_VERSION"; then | |
pyenv install $PYTHON_VERSION | |
fi | |
- name: Setup client | |
run: | | |
pyenv virtualenv 3.12.0 test | |
pyenv activate test | |
pyenv deactivate test | |
pyenv virtualenv-delete test -f | |