Skip to content
Open
Show file tree
Hide file tree
Changes from 6 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
19 changes: 18 additions & 1 deletion .github/workflows/pytest_fast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
pull_request:

permissions:
contents: read
pull-requests: read

jobs:
test-build:
name: Build and Inspect Python Package
Expand Down Expand Up @@ -37,6 +41,11 @@ jobs:
pytest-fast:
name: Pytest (Fast)
runs-on: ubuntu-24.04
permissions:
checks: write
contents: read
code-quality: write
pull-requests: read
steps:
# Common steps:
- name: Checkout code
Expand Down Expand Up @@ -68,7 +77,7 @@ jobs:
if: always()
run: |
poetry run coverage html -d htmlcov
poetry run coverage xml -o htmlcov/coverage.xml
poetry run coverage xml --include="airbyte_cdk/*" -o htmlcov/coverage.xml

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand All @@ -85,3 +94,11 @@ jobs:
with:
name: fasttest-coverage
path: htmlcov/
- name: Upload coverage to GitHub Code Quality
if: always()
uses: actions/upload-code-coverage@v1
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
with:
file: htmlcov/coverage.xml
language: Python
label: code-coverage/pytest-fast
fail-on-error: false
21 changes: 20 additions & 1 deletion .github/workflows/pytest_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ on:
- "unit_tests/**"
- "poetry.lock"
- "pyproject.toml"
- ".github/workflows/pytest_matrix.yml"
pull_request:

permissions:
contents: read
pull-requests: read

jobs:
pytest:
name: Pytest (All, Python ${{ matrix.python-version }}, ${{ matrix.os }})
Expand All @@ -40,6 +45,11 @@ jobs:
fail-fast: false

runs-on: "${{ matrix.os }}-latest"
permissions:
checks: write
contents: read
code-quality: write
pull-requests: read
env:
# Enforce UTF-8 encoding so Windows runners don't fail inside the connector code.
# TODO: See if we can fully enforce this within PyAirbyte itself.
Expand All @@ -58,6 +68,7 @@ jobs:
- 'bin/**'
- 'poetry.lock'
- 'pyproject.toml'
- '.github/workflows/pytest_matrix.yml'
- name: Set up Poetry
uses: snok/install-poetry@v1
if: steps.changes.outputs.src == 'true'
Expand Down Expand Up @@ -92,7 +103,7 @@ jobs:
if: always() && steps.changes.outputs.src == 'true'
run: |
poetry run coverage html -d htmlcov
poetry run coverage xml -o htmlcov/coverage.xml
poetry run coverage xml --include="airbyte_cdk/*" -o htmlcov/coverage.xml

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand All @@ -109,3 +120,11 @@ jobs:
with:
name: py${{ matrix.python-version }}-${{ matrix.os }}-test-coverage
path: htmlcov/
- name: Upload coverage to GitHub Code Quality
if: always() && steps.changes.outputs.src == 'true' && matrix.python-version == '3.11' && matrix.os == 'Ubuntu'
uses: actions/upload-code-coverage@v1
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
with:
file: htmlcov/coverage.xml
language: Python
label: code-coverage/pytest-matrix
fail-on-error: false
Loading