-
Notifications
You must be signed in to change notification settings - Fork 190
39 lines (36 loc) · 1.07 KB
/
ci-auto-commit-mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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"