Skip to content

feat: 实现生成器同步机制并重构项目架构 #1

feat: 实现生成器同步机制并重构项目架构

feat: 实现生成器同步机制并重构项目架构 #1

Workflow file for this run

name: Tests and Coverage
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', '3.11']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov allure-pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run unit tests with coverage
run: |
export PYTHONPATH=src
python -m pytest tests/unit/ --cov=dynamic_params --cov-report=xml --cov-config=.coveragerc
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: true