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: 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 +