diff --git a/.circleci/config.yml b/.circleci/config.yml index fe5ae248..666429d4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,7 @@ +--- version: 2.1 orbs: - codecov: codecov/codecov@4 + codecov: codecov/codecov@5 jobs: build: @@ -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: diff --git a/app/calculator.py b/app/calculator.py index 4f380e8e..8a976b25 100644 --- a/app/calculator.py +++ b/app/calculator.py @@ -13,4 +13,3 @@ def divide(x, y): if y == 0: return 'Cannot divide by 0' return x * 1.0 / y - diff --git a/fake-file.txt b/fake-file.txt new file mode 100644 index 00000000..5ef6fd01 --- /dev/null +++ b/fake-file.txt @@ -0,0 +1 @@ +thisisnotacoveragereport