-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (25 loc) · 939 Bytes
/
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
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 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 --update-model