Skip to content

Commit

Permalink
DBTP-1511 Start gathering some metrics with Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
WillGibson committed Nov 5, 2024
1 parent 64cc35b commit 8f6145f
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:

strategy:
matrix:
# If the matrix, you must also update after_n_builds in codecov.yml to match the number of times the test suite is run
python-version: ["3.12", "3.11", "3.10", "3.9"]

steps:
Expand All @@ -28,10 +29,12 @@ jobs:
poetry install
- name: Run pytest
run: poetry run pytest
run: poetry run pytest --cov
env:
PYTHON_VERSION: ${{ matrix.python-version }}

- uses: codecov/codecov-action@v4

lint:
name: Run lint checks
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
comment: false
codecov:
notify:
after_n_builds: 4
97 changes: 96 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ pre-commit = "^3.3.3"
freezegun = "^1.2.2"
parameterized = "^0.9.0"
pytest-xdist = "^3.5.0"
pytest-cov = "^6.0.0"

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit 8f6145f

Please sign in to comment.