From 6713f4d9b073463fce87acaaffe90574c2c4b8f7 Mon Sep 17 00:00:00 2001 From: yanyongyu Date: Thu, 13 Jan 2022 18:11:00 +0800 Subject: [PATCH] :white_check_mark: add test flags for os, python version --- .github/workflows/codecov.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 19c6a39c..b7232baa 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -6,14 +6,17 @@ on: jobs: test: - name: Run Pytest and Upload Coverage + name: Test Coverage + runs-on: ${{ matrix.os }} strategy: matrix: python-version: ["3.7", "3.8", "3.9", "3.10"] os: [ubuntu-latest, windows-latest, macos-latest] fail-fast: false + env: + OS: ${{ matrix.os }} + PYTHON_VERSION: ${{ matrix.python-version }} - runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 @@ -30,5 +33,6 @@ jobs: - name: Upload coverage report uses: codecov/codecov-action@v2 with: + env_vars: OS,PYTHON_VERSION files: ./tests/coverage.xml flags: unittests