Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
9 changes: 9 additions & 0 deletions .github/workflows/pytest_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ jobs:
poetry run coverage html -d htmlcov
poetry run coverage xml -o htmlcov/coverage.xml

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always() && !cancelled()
continue-on-error: true
with:
check_name: "PyTest Results (Fast)"
large_files: true
files: |
build/test-results/**/*.xml
- name: Upload coverage to GitHub Artifacts
if: always()
uses: actions/upload-artifact@v4
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/pytest_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ jobs:
poetry run coverage html -d htmlcov
poetry run coverage xml -o htmlcov/coverage.xml

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always() && !cancelled() && steps.changes.outputs.src == 'true' && matrix.python-version == '3.11'
continue-on-error: true
with:
check_name: "PyTest Results (Full)"
large_files: true
files: |
build/test-results/**/*.xml
- name: Upload coverage to GitHub Artifacts
if: always() && steps.changes.outputs.src == 'true'
uses: actions/upload-artifact@v4
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/test-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,15 @@ jobs:
--verbose
-m "flaky and not super_slow"

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always() && !cancelled()
Comment thread
aaronsteers marked this conversation as resolved.
Outdated
continue-on-error: true
with:
check_name: "PyTest Results (On-Demand)"
large_files: true
files: |
build/test-results/**/*.xml
- name: Post CI Success to GitHub
run: |
curl --request POST \
Expand Down
10 changes: 2 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,8 @@ ignore = [
"W002" # Duplicate files. (TODO: Fix the few duplicate files, mostly `__init__.py` files that have only copyright text.)
]

[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
filterwarnings = [
"ignore::airbyte_cdk.sources.source.ExperimentalClassWarning"
]
# [tool.pytest.ini_options]
# NOTE: PyTest options moved to dedicated `pytest.ini`

[tool.airbyte_ci]
python_versions = ["3.10", "3.11"]
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ log_cli = 1
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)
log_cli_date_format=%Y-%m-%d %H:%M:%S
addopts = -rs --strict-markers --timeout=600 --junit-xml=build/test-results/test-results.xml
Comment thread
aaronsteers marked this conversation as resolved.
Outdated
filterwarnings =
ignore::airbyte_cdk.sources.source.ExperimentalClassWarning
markers =
Expand Down
Loading