Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/file-filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ doc_files: &doc_files
python_all: &python_all
- "**/*.py"
- *poetry_files
- *ci_config

yaml_all: &yaml_all
- "**/*.{yml,yaml}"
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ jobs:
run: |
pipx install poetry
poetry config virtualenvs.prefer-active-python true
pip install invoke toml
pip install invoke toml codecov
- name: "Install Package"
run: "poetry install --all-extras"
- name: "Mypy Tests"
Expand All @@ -151,3 +151,8 @@ jobs:
# run: "poetry run pylint infrahub_sdk/"
- name: "Unit Tests"
run: "poetry run pytest tests/unit/"
- name: "Upload coverage to Codecov"
run: |
codecov --flags python-${{ matrix.python-version }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ filterwarnings = [
"ignore:Module already imported so cannot be rewritten",
"ignore:Deprecated call to",
]
addopts = "-vs --cov-report term-missing --cov-report xml --dist loadscope"
addopts = "-vs --cov infrahub_sdk --cov-report term-missing --cov-report xml --dist loadscope"

[tool.mypy]
pretty = true
Expand Down