Skip to content

Commit e2f3fd5

Browse files
ci: skip integration tests on Windows to reduce CI timeout (#779)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent beb6665 commit e2f3fd5

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/python_pytest.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ jobs:
182182
run: poetry install
183183

184184
# Job-specific step(s):
185-
- name: Run Pytest
185+
- name: Run Pytest [all]
186+
if: matrix.os != 'Windows'
186187
timeout-minutes: 60
187188
env:
188189
GCP_GSM_CREDENTIALS: ${{ secrets.GCP_GSM_CREDENTIALS }}
@@ -191,6 +192,17 @@ jobs:
191192
--verbose
192193
-m "not linting and not super_slow and not flaky"
193194
195+
- name: Run Pytest [unit tests only]
196+
if: matrix.os == 'Windows'
197+
timeout-minutes: 60
198+
env:
199+
GCP_GSM_CREDENTIALS: ${{ secrets.GCP_GSM_CREDENTIALS }}
200+
run: >
201+
poetry run coverage run -m pytest
202+
--verbose
203+
tests/unit_tests/
204+
-m "not linting and not super_slow and not flaky"
205+
194206
- name: Print Coverage Report
195207
if: always()
196208
run: poetry run coverage report

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ airbyte-mcp = "airbyte.mcp.server:main"
183183
[tool.poe.tasks]
184184
test = { shell = "pytest" }
185185
test-fast = { shell = "pytest --durations=5 --exitfirst -m 'not slow'" }
186+
test-unit-tests = { shell = "pytest tests/unit_tests/" }
186187

187188
coverage = { shell = "coverage run -m pytest && coverage report" }
188189
coverage-report = { shell = "coverage report" }

0 commit comments

Comments
 (0)