From 6cc5e391330d2f9754aa7a92397d4894253df6c0 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Mon, 15 Jul 2024 22:41:37 +0200 Subject: [PATCH 1/2] fix: whitespace --- app/calculator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/calculator.py b/app/calculator.py index 8a976b25..4f380e8e 100644 --- a/app/calculator.py +++ b/app/calculator.py @@ -13,3 +13,4 @@ def divide(x, y): if y == 0: return 'Cannot divide by 0' return x * 1.0 / y + From 3a596162e4bf1610c363cc5455c27da9169c84c5 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Mon, 15 Jul 2024 22:46:26 +0200 Subject: [PATCH 2/2] fix: see if it works on CI --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e42465a..0b1d0cbc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,13 @@ jobs: run: pip install -r requirements.txt - name: Run tests and collect coverage run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }} + - name: Run upload + run: | + curl -Os https://cli.codecov.io/latest/linux/codecov + chmod +x codecov + ./codecov -v create-commit -t ${{ secrets.CODECOV_TOKEN }} + ./codecov -v create-report -t ${{ secrets.CODECOV_TOKEN }} + - name: Upload coverage to Codecov uses: codecov/codecov-action@v4 with: