v2.3.14: 插件统一支持调用环境变量、新增【发送QQ邮件插件】,优化移动端缓存scramble_id减少请求。 #62
Workflow file for this run
This file contains 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 Test (HTML) | |
on: | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
push: | |
branches: [ "dev" ] | |
paths: | |
- 'src/**/*.py' | |
- 'tests/**/*.py' | |
- '.github/workflows/test_html.yml' | |
- 'assets/option/option_test_html.yml' | |
jobs: | |
test: # This code is based on https://github.com/gaogaotiantian/viztracer/blob/master/.github/workflows/python-package.yml | |
strategy: | |
matrix: | |
python-version: ['3.7', '3.8', '3.11', '3.12'] | |
os: [ ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 5 | |
env: | |
# 配置文件路径 | |
JM_OPTION_PATH_TEST: ./assets/option/option_test_html.yml | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi | |
- name: Install local | |
run: | | |
pip install -e ./ | |
- name: Run Test | |
run: | | |
cd ./tests/ | |
python -m unittest |