-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add experiment file for running on mac
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
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 -)" | ||
PYTHON_VERSION="3.12.0" # Specify the Python version you need | ||
if ! pyenv versions | grep -q "$PYTHON_VERSION"; then | ||
pyenv install $PYTHON_VERSION | ||
fi | ||
pyenv virtualenv 3.12.0 test | ||
pyenv activate test | ||
pyenv deactivate test | ||
pyenv virtualenv-delete test -f | ||