-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (30 loc) · 1.11 KB
/
run.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
name: Run Scripts
on: push
jobs:
run:
runs-on: ubuntu-latest
environment: schedule-staging
timeout-minutes: 30
steps:
- name: Check out repository code
uses: actions/checkout@v2
# Setup Python (faster than using Python container)
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Add $PYTHONPATH
run: echo "PYTHONPATH=$PYTHONPATH:/home/runner/work/scheduler/scheduler:/home/runner/work/scheduler/scheduler/pyexplore/pyexplore" >> $GITHUB_ENV
- name: Install pyexplore
env:
GH_PAT: ${{ secrets.GH_PAT }}
run: |
pip install https://${GH_PAT}@github.com/stroncod/pyexplore.git
- name: Run Greedymax
env:
REDISCLOUD_URL: ${{ secrets.REDISCLOUD_URL }}
run: python scheduler/scripts/run_greedymax.py