chore:update workflow

This commit is contained in:
2061360308 2023-12-14 18:16:20 +08:00
parent 3227ba3269
commit 464f0d206c
2 changed files with 2 additions and 2 deletions

View File

@ -23,5 +23,7 @@ jobs:
pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests with pytest
env:
COOKIE: ${{ secrets.COOKIE }}
run: |
pytest

View File

@ -2,9 +2,7 @@ from pytest_html import extras
import json
import os
from pprint import pprint
import dotenv
from package.NeteaseCloudMusic import NeteaseCloudMusicApi, api_help, api_list
dotenv.load_dotenv() # 从.env文件中加载环境变量
netease_cloud_music_api = NeteaseCloudMusicApi() # 初始化API
netease_cloud_music_api.cookie = os.getenv('COOKIE') # 设置cookie
netease_cloud_music_api.DEBUG = True # 开启调试模式