diff --git a/.github/workflows/merge_stage_test.yml b/.github/workflows/merge_stage_test.yml index 8a4a28d6f6218d5f1a68fe7cef509ea6568e2af7..d9b330ca99cec29f937a67a4e1b97f97fde05cc0 100644 --- a/.github/workflows/merge_stage_test.yml +++ b/.github/workflows/merge_stage_test.yml @@ -48,7 +48,7 @@ jobs: mim install 'mmcv>=2.0.0rc1' - name: Run unittests and generate coverage report run: | - coverage run --branch --source mmengine -m pytest tests/ + coverage run --branch --source mmengine -m pytest tests/ --ignore tests/test_dist coverage xml coverage report -m @@ -97,15 +97,11 @@ jobs: mim install 'mmcv>=2.0.0rc1' - name: Run unittests and generate coverage report run: | - if [[ ${{ matrix.torch }} == "1.13.0" ]]; then - coverage run --branch --source mmengine -m pytest tests/ --ignore tests/test_dist - else - coverage run --branch --source mmengine -m pytest tests/ - fi + coverage run --branch --source mmengine -m pytest tests/ --ignore tests/test_dist # Only upload coverage report for python3.7 && pytorch1.8.1 cpu - name: Upload coverage to Codecov if: ${{matrix.torch == '1.8.1' && matrix.python-version == '3.7'}} - uses: codecov/codecov-action@v1.0.14 + uses: codecov/codecov-action@v3 with: file: ./coverage.xml flags: unittests @@ -148,7 +144,7 @@ jobs: mim install 'mmcv>=2.0.0rc1' - name: Run unittests and generate coverage report run: | - coverage run --branch --source mmengine -m pytest tests/ + coverage run --branch --source mmengine -m pytest tests/ --ignore tests/test_dist coverage xml coverage report -m @@ -292,7 +288,7 @@ jobs: pip install openmim mim install 'mmcv>=2.0.0rc1' - name: Run CPU unittests - run: pytest tests/ + run: pytest tests/ --ignore tests/test_dist if: ${{ matrix.platform == 'cpu' }} - name: Run GPU unittests # Skip testing distributed related unit tests since the memory of windows CI is limited diff --git a/.github/workflows/pr_stage_test.yml b/.github/workflows/pr_stage_test.yml index a0c0aa2ed9fdceb6653ef2401fcaef023c0483b7..d11feda58a580f47bf28a2979f970a4f18017632 100644 --- a/.github/workflows/pr_stage_test.yml +++ b/.github/workflows/pr_stage_test.yml @@ -45,12 +45,12 @@ jobs: mim install 'mmcv>=2.0.0rc1' - name: Run unittests and generate coverage report run: | - coverage run --branch --source mmengine -m pytest tests/ + coverage run --branch --source mmengine -m pytest tests/ --ignore tests/test_dist coverage xml coverage report -m # Upload coverage report for python3.7 && pytorch1.8.1 cpu - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1.0.14 + uses: codecov/codecov-action@v3 with: file: ./coverage.xml flags: unittests @@ -90,7 +90,7 @@ jobs: mim install 'mmcv>=2.0.0rc1' - name: Run unittests and generate coverage report run: | - coverage run --branch --source mmengine -m pytest tests/ + coverage run --branch --source mmengine -m pytest tests/ --ignore tests/test_dist coverage xml coverage report -m @@ -161,7 +161,7 @@ jobs: pip install openmim mim install 'mmcv>=2.0.0rc1' - name: Run CPU unittests - run: pytest tests/ + run: pytest tests/ --ignore tests/test_dist if: ${{ matrix.platform == 'cpu' }} - name: Run GPU unittests # Skip testing distributed related unit tests since the memory of windows CI is limited