diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app1.yml similarity index 89% rename from .github/workflows/python-app.yml rename to .github/workflows/python-app1.yml index ce40b93a..143acc90 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app1.yml @@ -8,9 +8,6 @@ on: branches: [ "main" ] pull_request: branches: [ "main" ] - schedule: - - cron: 0 */3 * * * - permissions: contents: read @@ -22,10 +19,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.8 + - name: Set up Python 3.10 uses: actions/setup-python@v3 with: - python-version: "3.8" + python-version: "3.10" - name: Install dependencies run: | python -m pip install --upgrade pip @@ -38,4 +35,5 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest - run: python main.py + run: | + pytest diff --git a/README.md b/README.md index d0cdafe6..8b137891 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# 女朋友专属公众号 + diff --git a/config.conf b/config.conf index a203e591..ef8888b3 100644 --- a/config.conf +++ b/config.conf @@ -1,21 +1,21 @@ [info] #开始在一起的日期,格式参考 2022-06-24 -start_date=2022-06-24 +start_date=2018-06-08 #你女朋友所在的城市,写城市名或省份名或者所在的区 如 "云南"或者"昆明"或者"五华区" -city1=昆明 +city1=株洲 #你女朋友的家乡,写城市名或省份名或者所在的区 如 "云南"或者"昆明"或者"五华区" -city2=腾冲 +city2=株洲 #你女朋友的生日,注意格式只写*月*日 如:"07-21" -birthday_lover=07-21 +birthday_lover=05-28 #你的生日,注意格式只写*月*日 如:"07-21" -birthday_my=05-04 +birthday_my=11-17 #以下为微信测试号的参数,在申请时会显示 -app_id=wxbc471cb -app_secret=c4149ff570 +app_id=wx988d424668e5472d +app_secret=201fdc67759ff7b50d56bb916210cbe1 #消息模板ID,在微信测试号中添加模板会自动生成ID -template_id=o_H3x859-mrYPv2ynphC +template_id=roOZzH_3W6jOj4_tKDrHw6qUpVjKQTGr57cZ9-mU578 #接收消息的用户ID,让你的女朋友扫微信测试号的二维码,获取微信用户ID -user_id=oB3 +user_id=oycEm6KUQVWto5EWwy9jpMTcl5fs #如有多个女朋友或者女朋友有多个微信,请使用以下格式,","隔开 #user_id=****,***,***** diff --git a/tmp.txt b/tmp.txt index 9c86185e..5a0161bc 100644 --- a/tmp.txt +++ b/tmp.txt @@ -8,10 +8,7 @@ 今日天气:{{weather1.DATA}} 当前温度:{{temperature1.DATA}} {{sid.DATA}} -距离领导的生日还有{{birthday_lover.DATA}}天 -距离秘书的生日还有{{birthday_my.DATA}}天 +在一起的第{{start_date.DATA}}天 距离元旦还有{{yd.DATA}}天 距离春节还有{{cj.DATA}}天 -===家乡:{{city2.DATA}} 天气:{{weather2.DATA}}=== 今日评分最高电影:{{mv.DATA}} -每日一句:{{words.DATA}} \ No newline at end of file