From 779e78f5d505e42e3689615d914f8726dad9261c Mon Sep 17 00:00:00 2001 From: Florian Mahner <38691276+florianmahner@users.noreply.github.com> Date: Mon, 17 Jun 2024 15:16:21 +0200 Subject: [PATCH] Update codecov.yml --- .github/workflows/codecov.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index bdb678c..ee95423 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -6,27 +6,28 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] + python-version: [3.8, 3.9] env: OS: ${{ matrix.os }} - PYTHON: '3.8' + PYTHON: ${{ matrix.python-version }} steps: - - uses: actions/checkout@master - - name: Setup Python - uses: actions/setup-python@master + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v4 with: - python-version: 3.9 + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 pytest + pip install flake8 pytest coverage pip install -e . if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Generate coverage report run: | - pip install coverage coverage run -m unittest discover tests coverage xml @@ -35,7 +36,6 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} env_vars: OS,PYTHON - version: "v0.1.15" fail_ci_if_error: true flags: unittests files: ./coverage.xml