diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3fe47ed1..13f5fddc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,17 +15,11 @@ jobs: python-version: '3.10' - name: Install dependencies run: pip install -r requirements.txt - - name: Run ATS - uses: codecov/codecov-ats@v0 - env: - CODECOV_STATIC_TOKEN: ${{ secrets.CODECOV_STATIC_TOKEN }} - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - name: Run tests and collect coverage - run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }} + run: pytest --cov app - name: Upload coverage to Codecov uses: codecov/codecov-action@v4-beta with: - flags: smart-tests verbose: true env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/app/test_calculator.py b/app/test_calculator.py index f5641938..3a284ff8 100644 --- a/app/test_calculator.py +++ b/app/test_calculator.py @@ -22,10 +22,3 @@ def test_multiply(): assert Calculator.multiply(0, 2.0) == 0.0 assert Calculator.multiply(2.0, 0.0) == 0.0 assert Calculator.multiply(-4, 2.0) == -8.0 - -def test_divide(): - # assert Calculator.divide(1, 2) == 0.5 - assert Calculator.divide(1.0, 2.0) == 0.5 - assert Calculator.divide(0, 2.0) == 0 - assert Calculator.divide(-4, 2.0) == -2.0 - # assert Calculator.divide(2.0, 0.0) == 'Cannot divide by 0'