Skip to content

Python CI

Python CI #871

Workflow file for this run

name: Python CI
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Python
run: python3 Coursedump.py
- name: Commit
continue-on-error: true
run: |
git config --global user.email "heitang.me@gmail.com"
git config --global user.name "HeiTang"
git add .
git commit -m "docs: Update course information."
- name: Push Changes
if: success()
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}