Skip to content

Commit

Permalink
add coverage results for python
Browse files Browse the repository at this point in the history
  • Loading branch information
Verus20 committed Aug 17, 2024
1 parent 649f360 commit 50fb783
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/codecov_py.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Workflow to codecov

name: Run codecov
# Runs on push to any branch
on:
push:
pull_request:
branches:
- master
# Workflow can be triggered manually from the Actions tab
workflow_dispatch:

jobs:
# Run tests
codecov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Checkout
- uses: actions/setup-python@v4
name: Set up Python 3.10
with:
python-version: '3.10'
- name: Install python dependencies
run: pip install -r controller/requirements.txt
- name: Run unit tests with code coverage
run: coverage run -m pytest
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
timeout-minutes: 1
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"test": "jest test",
"coverage": "jest --coverage",
"coverage": "jest --coverage --collectCoverageFrom='src/**/*.{ts,tsx}'",
"ts-coverage": "typescript-coverage-report",
"server": "npx ts-node src/server/server.ts"
},
Expand Down

0 comments on commit 50fb783

Please sign in to comment.