Skip to content

Daily job

Daily job #5

Workflow file for this run

name: Daily job
on:
schedule:
- cron: '0 3 * * *'
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/[email protected]
- name: Setup Python
uses: actions/[email protected]
- 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 --check-deadline