V0.0.1.7 pw2 -> main for 重大功能更新与修复及文档 on 24/dec/25 #273
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: Workflow for Codecov f2 | |
on: [push, pull_request] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
env: | |
SKIP_IN_CI: true | |
CODECOV_STATIC_TOKEN: ${{ secrets.CODECOV_STATIC_TOKEN }} | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
pip install pytest | |
pip install pytest-cov | |
pip install -e . | |
- name: Print environment variable | |
run: echo $SKIP_IN_CI | |
- name: Run tests and collect coverage | |
run: pytest --cov=./ --cov-report=xml | |
- name: Run ATS | |
uses: codecov/codecov-ats@v0 | |
- name: Upload coverage reports to Codecov | |
uses: codecov/[email protected] | |
with: | |
slug: Johnserf-Seed/f2 | |
verbose: true |