Run Sushi Chef Illustrative Mathematics #3
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: Run Sushi Chef Illustrative Mathematics | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: Cache folders and files | |
uses: actions/cache@v2 | |
with: | |
path: | | |
restore/ | |
.ricecookerfilecache/ | |
storage/ | |
illustrativemath_cache.* | |
key: ${{ runner.os }}-cache-${{ hashFiles('**/*') }} | |
restore-keys: | | |
${{ runner.os }}-cache- | |
- name: Run main.py | |
env: | |
STUDIO_TOKEN: ${{ secrets.LE_STUDIO_TOKEN }} | |
ILLUSTRATIVE_API_KEY: ${{ secrets.ILLUSTRATIVE_MATH_API_KEY }} | |
run: python main.py |