Skip to content

Commit

Permalink
ci: codecov integration
Browse files Browse the repository at this point in the history
  • Loading branch information
zyf722 committed Sep 4, 2024
1 parent d764019 commit 97f5299
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:

runs-on: ${{ matrix.os }}

env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -54,7 +58,15 @@ jobs:
uses: crate-ci/typos@master

- name: Run tests
run: poetry run pytest -vvv
run: poetry run pytest -vvv --cov

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: execenv
verbose: true
env_vars: OS,PYTHON

- name: Build package
run: poetry build

0 comments on commit 97f5299

Please sign in to comment.