Skip to content

Commit

Permalink
trigger codecov manually
Browse files Browse the repository at this point in the history
  • Loading branch information
jhj0411jhj committed Feb 29, 2024
1 parent af65b9f commit 13b6301
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Test and Upload Coverage

on:
workflow_dispatch:

env:
test-requires: "[test,extra]"
test-dir: test
pytest-args: >-
-rap
--durations=20
--verbose
jobs:

tests-pip:
name: Tests (pip, Python ${{ matrix.python-version }}, ${{ matrix.os }}) and Upload Coverage
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest" ]
python-version: [ "3.8" ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade wheel setuptools
pip install ".${{ env.test-requires }}"
- name: Run tests
run: |
pytest ${{ env.pytest-args }} ${{ env.test-dir }}
- name: Upload coverage reports to Codecov with GitHub Action
# if: ${{ runner.os == 'Linux' && matrix.python-version == 3.8 }}
uses: codecov/codecov-action@v3
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ jobs:
- name: Run tests
run: |
pytest ${{ env.pytest-args }} ${{ env.test-dir }}
- name: Upload coverage reports to Codecov with GitHub Action
if: ${{ runner.os == 'Linux' && matrix.python-version == 3.8 }}
uses: codecov/codecov-action@v3
# - name: Upload coverage reports to Codecov with GitHub Action
# if: ${{ runner.os == 'Linux' && matrix.python-version == 3.8 }}
# uses: codecov/codecov-action@v3

0 comments on commit 13b6301

Please sign in to comment.