Skip to content
This repository was archived by the owner on Aug 11, 2026. It is now read-only.

Commit 1863224

Browse files
committed
fix: skip integration tests in CI to avoid authentication issues
- Mark integration tests with @pytest.mark.integration - Update GitHub Actions to run 'pytest -m "not integration"' - This skips tests that require live authentication to IDTAP server - Unit tests with mocked authentication will still run
1 parent fe4a45a commit 1863224

4 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
if: steps.release-check.outputs.should_release == 'true'
5050
run: |
5151
echo "Running tests before release..."
52-
pytest idtap/tests/
52+
pytest idtap/tests/ -m "not integration"
5353
5454
- name: Configure git
5555
if: steps.release-check.outputs.should_release == 'true'

.github/workflows/test-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
pip install -e .[dev]
2626
2727
- name: Run tests
28-
run: pytest idtap/tests/
28+
run: pytest idtap/tests/ -m "not integration"
2929

3030
- name: Build package
3131
run: python -m build

idtap/tests/query_integration_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
TEST_TRANSCRIPTION_ID = "645ff354deeaf2d1e33b3c44"
1616

1717

18+
@pytest.mark.integration
1819
class TestRealTranscriptionQueries:
1920
"""Test queries against real transcription data."""
2021

idtap/tests/test_realistic_queries.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import sys
77
import os
8+
import pytest
89
# Add the parent directory to Python path so we can import idtap
910
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')))
1011

@@ -13,6 +14,7 @@
1314
# Test transcription ID
1415
TRANSCRIPTION_ID = "645ff354deeaf2d1e33b3c44"
1516

17+
@pytest.mark.integration
1618
def test_realistic_consonant_vowel_query():
1719
"""Test the query you mentioned: trajectories starting with consonant 'ba' and vowel 'a'."""
1820

0 commit comments

Comments
 (0)