Skip to content

Commit

Permalink
try new codecov workflow
Browse files Browse the repository at this point in the history
apply pytest-cov, try different codecov workflow

try new codecov action

correct syntax
  • Loading branch information
kedhammar committed Jun 28, 2024
1 parent cef46a2 commit c2eadcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/test-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ jobs:
run: pip install -e .
- name: pytest
# Options are configured in pyproject.toml
run: pytest
run: pytest --cov=genologics --cov-report=xml
- name: CodeCov
run: |
# Replace `linux` below with the appropriate OS
# Options are `alpine`, `linux`, `macos`, `windows`
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${{ secrets.CODECOV_TOKEN }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ mock
mypy
pipreqs
pytest
pytest-cov
ruff
sphinxcontrib-programoutput
types-requests
Expand Down

0 comments on commit c2eadcc

Please sign in to comment.