Skip to content

Commit e589c7f

Browse files
committed
Fix CI script again
1 parent 0f6070c commit e589c7f

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
python-version: "3.11"
9595
- uses: ./.github/actions/setup-env
9696
- name: Build fixture database
97-
run: tox -e json_infra --notest && tox -e json_infra -- python -m tests.json_infra.build_fixture_db
97+
run: tox -e build_fixture_db
9898
- name: Run json infra tests
9999
run: tox -e json_infra
100100
env:

tests/json_infra/helpers/load_blockchain_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ def fetch_blockchain_tests(
194194
"""Fetch all blockchain test cases for the specified JSON fork."""
195195
# Try database backend first
196196
if _use_database_backend():
197+
print(f"Loading blockchain tests for {json_fork} from database")
197198
query = _get_fixture_query()
198199
for test_case_data in query.fetch_blockchain_tests(json_fork):
199200
test_case_dict = test_case_data["data"]

tests/json_infra/helpers/load_state_tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def fetch_state_tests(json_fork: str) -> Generator:
5353
"""
5454
# Try database backend first
5555
if _use_database_backend():
56+
print(f"Loading state tests for {json_fork} from database")
5657
query = _get_fixture_query()
5758
for test_case_data in query.fetch_state_tests(json_fork):
5859
test_case_dict = test_case_data["data"]

tox.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ commands =
5959
--basetemp="{temp_dir}/pytest" \
6060
src
6161

62+
[testenv:build_fixture_db]
63+
description = Build the JSON fixture database
64+
commands =
65+
python -m tests.json_infra.build_fixture_db
66+
6267
[testenv:json_infra]
6368
description = Run the spec against released test fixtures
6469
commands =

0 commit comments

Comments
 (0)