Skip to content

Commit 679b6f9

Browse files
Added tests grouping
1 parent c8512f1 commit 679b6f9

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
-e CONDUCTOR_SERVER_URL=${{ env.CONDUCTOR_SERVER_URL }} \
7979
-v ${{ github.workspace }}/${{ env.COVERAGE_DIR }}:/package/${{ env.COVERAGE_DIR }}:rw \
8080
conductor-sdk-test:latest \
81-
/bin/sh -c "cd /package && COVERAGE_FILE=/package/${{ env.COVERAGE_DIR }}/.coverage.integration coverage run -m pytest -m v4_1_73 tests/integration -v"
81+
/bin/sh -c "cd /package && COVERAGE_FILE=/package/${{ env.COVERAGE_DIR }}/.coverage.integration coverage run -m pytest -m v4 tests/integration -v"
8282
8383
- name: Generate coverage report
8484
id: coverage_report

tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def pytest_collection_modifyitems(config, items):
2+
for item in items:
3+
if item.get_closest_marker("v5_2_6"):
4+
item.add_marker("v5")
5+
if item.get_closest_marker("v4_1_73"):
6+
item.add_marker("v4")

0 commit comments

Comments
 (0)