Run Papermill Conversion #164
This file contains hidden or 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 Papermill Conversion | |
| on: | |
| schedule: | |
| - cron: "20 2/12 * * *" | |
| push: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Set up Python 3.9.12 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.9.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| ipython kernel install --name "python3" --user | |
| - name: run code | |
| run: | | |
| python papermillConvert.py | |
| - name: push repo | |
| run: | | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| git add . | |
| git commit -m "run code from github actions" | |
| git push | |