Skip to content

SMARTS CI Auto Commit Mac #141

SMARTS CI Auto Commit Mac

SMARTS CI Auto Commit Mac #141

name: SMARTS CI Auto Commit Mac
on:
schedule:
- cron: "0 23 * * 1"
# Runs at 11.00pm, UTC, every Monday
workflow_dispatch:
env:
venv_dir: .venv
jobs:
auto-commit-mac:
runs-on: macos-12
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: master
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Update requirements
run: |
cd $GITHUB_WORKSPACE
python3.9 -m venv ${{env.venv_dir}}
. ${{env.venv_dir}}/bin/activate
pip install --upgrade pip
pip install wheel==0.38.4
pip install .[camera-obs,rllib,test,torch,train]
pip freeze | grep -v 'smarts' | grep -v 'pkg-resources==0.0.0' > utils/setup/mac_requirements.txt
- name: Commit changes
uses: EndBug/add-and-commit@v7
with:
add: "utils/setup/mac_requirements.txt"
branch: master
default_author: user_info
message: "GitHub Actions: Update mac_requirements.txt"