Skip to content

Commit

Permalink
测试运行
Browse files Browse the repository at this point in the history
  • Loading branch information
lispringing committed Dec 12, 2024
1 parent 3533e1c commit e540aae
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 620 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 刷课

on:
push:
branches: [ main ]
#是否开始每天8点定时刷课,若要开启请把下面两行注释去掉
#schedule:
# - cron: "0 8 * * *"

jobs:
Start:
runs-on: ubuntu-latest # 在最新版本的 Ubuntu 操作系统环境下运行
steps: # 要执行的步骤
- name: 拷贝代码
uses: actions/checkout@v3 # 用于将github代码仓库的代码拷贝到工作目录中

- name: 设置python环境
uses: actions/setup-python@v2 # 用于设置 Python 环境,它允许你指定要在工作环境中使用的 Python 版本
with:
python-version: '3.9' # 选择要用的Python版本

- name: 安装依赖包
run: | # 安装依赖包
pip install -r ./requirements.txt
- name: Run main.py
run: python main.py #课程id,默认为心理课的
Loading

0 comments on commit e540aae

Please sign in to comment.