Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DNM] Th/test #246

Closed
wants to merge 15 commits into from
Closed
15 changes: 11 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
version: 2.1
orbs:
codecov: codecov/codecov@4
codecov: codecov/codecov@5

jobs:
build:
Expand All @@ -13,9 +14,15 @@ jobs:
command: pip install -r requirements.txt
- run:
name: Run tests and collect coverage
command: pytest --cov app
- codecov/upload

command: |
pytest --cov app
coverage xml
- codecov/upload:
files: coverage.*ml
plugins: noop
token: CODECOV_TOKEN
verbose: true
when: always
workflow:
version: 2.1
build-test:
Expand Down
1 change: 0 additions & 1 deletion app/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ def divide(x, y):
if y == 0:
return 'Cannot divide by 0'
return x * 1.0 / y

1 change: 1 addition & 0 deletions fake-file.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
thisisnotacoveragereport
Loading