Skip to content

Commit

Permalink
main codecov too
Browse files Browse the repository at this point in the history
  • Loading branch information
quadrismegistus committed Aug 21, 2024
1 parent 8e7ff32 commit 7c735ef
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,22 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install .[dev]
pip install pytest build twine
pip install pytest pytest-cov build twine
- name: Check installation
run: pip list | grep hashstash
- name: Run tests
- name: Run tests with coverage
run: |
export PYTHONPATH=$PYTHONPATH:$(pwd)
python -m pytest
export PYTHONPATH=$PYTHONPATH:$(pwd)
pytest --cov=./ --cov-report=xml
env:
REDIS_URL: redis://localhost:6379

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: quadrismegistus/hashstash

github-release:
name: "GitHub Release"
needs: [tests]
Expand Down

0 comments on commit 7c735ef

Please sign in to comment.