Skip to content

Commit

Permalink
fix: small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Jan 4, 2024
1 parent 68661af commit 45d6d5d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
7 changes: 0 additions & 7 deletions app/test_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit 45d6d5d

Please sign in to comment.