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

Fix macos test (naive) #1626

Merged
merged 2 commits into from
Sep 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 6 additions & 8 deletions .github/workflows/ci-auto-commit-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@ jobs:
uses: actions/checkout@v2
with:
ref: develop
- name: Setup Python
run: |
brew update
brew install [email protected]
brew unlink [email protected]
brew link --force --overwrite [email protected]
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.8"
Comment on lines +21 to +23
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very useful GitHub action.

Copy link
Collaborator Author

@Gamenot Gamenot Sep 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. What resources are available for cached setup can be checked by looking at the tools available for each image such as here:

https://github.com/actions/runner-images/blob/main/images/macos/macos-11-Readme.md#python

- name: Update requirements
run: |
cd $GITHUB_WORKSPACE
python3.7 -m venv ${{env.venv_dir}}
python3.8 -m venv ${{env.venv_dir}}
. ${{env.venv_dir}}/bin/activate
pip install --upgrade pip wheel
pip install .[camera-obs,rllib,test,torch,train]
Expand All @@ -37,4 +35,4 @@ jobs:
add: 'utils/setup/mac_requirements.txt'
branch: develop
default_author: user_info
message: 'GitHub Actions: Update mac_requirements.txt'
message: 'GitHub Actions: Update mac_requirements.txt'