Skip to content

Commit

Permalink
chore: gh action debug
Browse files Browse the repository at this point in the history
  • Loading branch information
BlairCurrey committed Feb 6, 2024
1 parent 4c1a4b8 commit 8ff40e2
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/train-spread-predictor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
- name: Download data
run: poetry run python ./nfl_analytics/main.py --download

# - name: Show swap
# run: df -h

# Necessary for train step
# https://github.com/actions/runner-images/discussions/7188#discussioncomment-6750749
# https://stackoverflow.com/questions/71590851/r8-is-causing-gradle-daemon-to-vanish-on-github-hosted-action-runner/76921482#76921482
- name: Increase swapfile
run: |
df -h
Expand All @@ -42,16 +42,18 @@ jobs:
sudo swapon /swapfile
sudo swapon --show
# TODO: should be able to combine w/ main.py --download
# Seperated from Download data to make debugging easier
- name: Train Model
run: poetry run python ./nfl_analytics/main.py --train

# TODO: tag name? release name?
- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v0.1.15
with:
files: ./nfl_analytics/assets/*
tag_name: spread-predictor
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit 8ff40e2

Please sign in to comment.