Skip to content

Commit 7932e96

Browse files
build(CI): skip tests of CSV import
1 parent 0b4d42c commit 7932e96

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

.github/workflows/test_and_lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
- run: mise run install-deps:server
6666

6767
- name: Pytest
68-
run: mise run test:pytest
68+
run: mise run test:pytest --marks="not slow_llm_api and not firebase_subscription and not profiles_csv_import"
6969

7070
- run: mise run install-deps:client
7171

.local/issues

Submodule issues deleted from 7f7dae6

mise.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@
225225
sources = ["neuronhub/**/*.py"]
226226
outputs = ["../schema.graphql"]
227227
quiet = true
228+
env.ALGOLIA_IS_ENABLED = "false"
228229

229230
[tasks."typegen:client"]
230231
depends = [

server/neuronhub/apps/profiles/services/csv_import_optimized__test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import pytest
12
from asgiref.sync import sync_to_async
23
from django.conf import settings
34

@@ -16,6 +17,8 @@ class config:
1617
limit = 100
1718

1819

20+
# #AI
21+
@pytest.mark.profiles_csv_import
1922
class CsvImportOptimizedTest(NeuronTestCase):
2023
async def test_first_row_is_not_header(self):
2124
stats = await _csv_save_to_db(limit=2)

server/neuronhub/apps/profiles/services/summarize_match_reviews__test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import pytest
12
from asgiref.sync import sync_to_async
23
from django.conf import settings
34
from django.utils import timezone
@@ -17,6 +18,7 @@ def _get_reviewed_attendees_list(user):
1718

1819

1920
# #AI-slop
21+
@pytest.mark.profiles_csv_import
2022
class SummarizeMatchReviewsTest(NeuronTestCase):
2123
async def test_get_reviewed_matches_detects_score_delta_from_history(self):
2224
attendees = await _get_profiles_from_csv(limit=5)

server/neuronhub/apps/tests/services/db_stubs_repopulate.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,14 @@ async def db_stubs_repopulate(
131131

132132
# #AI
133133
async def _import_profiles_csv(gen: Gen):
134-
from asgiref.sync import sync_to_async
135-
136134
from neuronhub.apps.profiles.services.csv_import_optimized import csv_optimize_and_import
137135

138136
csv_path = settings.CONF_CONFIG.eag_csv_path # type: ignore[has-type]
139-
if csv_path.exists():
137+
if csv_path and csv_path.exists():
140138
await sync_to_async(csv_optimize_and_import)(csv_path, limit=5, is_reindex_algolia=False)
141139

142140
# Admin user needs a Profile in the group to see profiles via Algolia security filters
143-
group, _ = await ProfileGroup.objects.aget_or_create(name="EAG-SF-2026")
141+
group, _ = await ProfileGroup.objects.aget_or_create(name=settings.CONF_CONFIG.eag_group) # type: ignore[has-type]
144142
await gen.profiles.profile(user=gen.users.user_default, groups=[group])
145143

146144
# Profiles with varied match scores: ensures LLM / User / Newest sorts produce different orderings

0 commit comments

Comments
 (0)