From 037aeeb21726119519de395bae58ecb7b364e42c Mon Sep 17 00:00:00 2001 From: Spiros Maggioros Date: Wed, 14 Aug 2024 21:51:54 +0300 Subject: [PATCH] Made macos 3.8 report to coverage instead of 3.12 --- .github/workflows/macos_test_cases_p3-12.yml | 12 +++--------- .github/workflows/macos_test_cases_p3-8.yml | 10 ++++++++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/macos_test_cases_p3-12.yml b/.github/workflows/macos_test_cases_p3-12.yml index 885a08c..b9c42d4 100644 --- a/.github/workflows/macos_test_cases_p3-12.yml +++ b/.github/workflows/macos_test_cases_p3-12.yml @@ -5,7 +5,7 @@ on: [push, pull_request, workflow_dispatch] jobs: build: - runs-on: ["macos-12"] + runs-on: ["macos-13"] steps: - uses: actions/checkout@v4 @@ -26,12 +26,6 @@ jobs: run: | pip install setuptools twine wheel python -m pip install . - - name: Generate Coverage Report + - name: Run unit tests run: | - pip install pytest-cov - cd tests/unit && pytest --cov=../../ --cov-report=xml - - name: Upload Coverage to Codecov - uses: codecov/codecov-action@v4.0.1 - with: - token: ${{ secrets.CODECOV_TOKEN }} - slug: CBICA/spare_score + cd tests/unit && python -m unittest discover -s . -p "*.py" diff --git a/.github/workflows/macos_test_cases_p3-8.yml b/.github/workflows/macos_test_cases_p3-8.yml index 9aa360a..7c91627 100644 --- a/.github/workflows/macos_test_cases_p3-8.yml +++ b/.github/workflows/macos_test_cases_p3-8.yml @@ -31,6 +31,12 @@ jobs: pip install "$WHEEL_FILE" - name: Download dependencies run: pip install setuptools && pip install . - - name: Run unit tests + - name: Generate Coverage Report run: | - cd tests/unit && python -m unittest discover -s . -p "*.py" + pip install pytest-cov + cd tests/unit && pytest --cov=../../ --cov-report=xml + - name: Upload Coverage to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: CBICA/spare_score