Skip to content

Commit

Permalink
chore(workflow): use codecov (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Snoopy1866 authored Sep 20, 2024
1 parent 93d5d74 commit 15ce61e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint and Test
name: Lint, Test and Report

on:
push:
Expand All @@ -17,12 +17,14 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "requirements-dev.txt"

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -34,7 +36,12 @@ jobs:
- name: Run Tests
run: |
pytest
pytest --cov --cov-report=xml
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}

report:
needs: check
Expand Down
5 changes: 3 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
scipy>=1.12.0

pytest==8.3.3
black==24.8.0
black==24.8.0
pytest==8.3.2
pytest-cov==5.0.0

0 comments on commit 15ce61e

Please sign in to comment.