Skip to content

Commit 38f5921

Browse files
committed
infra: update cit workflow
switch component integration tests to scenarios based
1 parent 3fee94e commit 38f5921

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/component_integration_tests.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
component-integration-tests:
99
runs-on: ubuntu-latest
10+
defaults:
11+
run:
12+
shell: bash
1013
steps:
1114
- name: Checkout repository
1215
uses: actions/checkout@v4
@@ -16,5 +19,20 @@ jobs:
1619
with:
1720
toolchain: 1.83.0
1821

19-
- name: Run tests
20-
run: cargo test --no-fail-fast --package rust_kvs --test cit_*
22+
- name: Set up Python 3
23+
uses: actions/setup-python@v5
24+
with:
25+
python-version: '3.12'
26+
27+
- name: Set up Python virtual environment
28+
working-directory: tests/python_test_cases
29+
run: |
30+
python -m venv .venv
31+
source .venv/bin/activate
32+
pip install -r requirements.txt
33+
34+
- name: Run Python tests with pytest
35+
working-directory: tests/python_test_cases
36+
run: |
37+
source .venv/bin/activate
38+
python -m pytest --build-scenarios

0 commit comments

Comments
 (0)