diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e20854cc..6ef17ccb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,11 +16,11 @@ jobs: run: pip install -r requirements.txt - name: Run tests and collect coverage run: pytest --cov --junitxml=junit.xml -o junit_family=legacy app - - name : Uploading test results to Codecov - if: ${{ !cancelled() }} - uses: codecov/test-results-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} + #- name : Uploading test results to Codecov + # if: ${{ !cancelled() }} + #uses: codecov/test-results-action@v1 + #with: + # token: ${{ secrets.CODECOV_TOKEN }} - name: Upload coverage to Codecov (arg token) uses: codecov/codecov-action@main with: @@ -45,8 +45,8 @@ jobs: # fail_ci_if_error: true #use_oidc: true #verbose: true - #- name: Upload test results to Codecov - # if: ${{ !cancelled() }} - #uses: codecov/test-results-action@v1 - #with: - #token: ${{ secrets.CODECOV_TOKEN }} + - name: Upload test results to Codecov + if: ${{ !cancelled() }} + uses: codecov/test-results-action@v1 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/app/test_calculator.py b/app/test_calculator.py index e9513f43..c97355c5 100644 --- a/app/test_calculator.py +++ b/app/test_calculator.py @@ -3,7 +3,7 @@ def test_add(): assert Calculator.add(1, 2) == 3.0 - assert Calculator.add(1.0, 1.0) == 2.0 + assert Calculator.add(1.0, 1.0) == 3.0 assert Calculator.add(0, 2.0) == 2.0 assert Calculator.add(2.0, 0) == 2.0 assert Calculator.add(-4, 2.0) == -2.0