-
Notifications
You must be signed in to change notification settings - Fork 3
30 lines (27 loc) · 1 KB
/
manual.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
name: Manual workflow
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
pickTeam:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4.7.0
- name: Install glpk-utils
run: sudo apt-get install glpk-utils
- name: Install numpy
run: pip3 install numpy
- name: Install other deps
run: pip3 install pandas pulp requests torch
- name: Run solver
env:
FANTASY_PL_USERNAME: ${{ secrets.FANTASY_PL_USERNAME }}
FANTASY_PL_PASSWORD: ${{ secrets.FANTASY_PL_PASSWORD }}
run: python3 main.py $FANTASY_PL_USERNAME --password $FANTASY_PL_PASSWORD --log-level debug --apply