Manual workflow #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |