Skip to content

Commit

Permalink
Test parallel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejbrown committed Sep 25, 2024
1 parent e662e67 commit 02074bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ jobs:
chmod 700 ~/.ssh
chmod 600 ~/.ssh/buildrunner-deploy-*
- name: Test with pytest
run: pytest -v --numprocesses=auto --junitxml=test-reports/test-results.xml
run: |
pytest -v -m "parallel" --numprocesses=auto --junitxml=test-reports/parallel-test-results.xml
cat test-reports/parallel-test-results.xml
pytest -v -m "not parallel" --junitxml=test-reports/test-results.xml
cat test-reports/test-results.xml
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action/linux@v2
if: always()
Expand Down
1 change: 1 addition & 0 deletions tests/test_buildrunner_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ def fixture_set_env():
del os.environ["BUILDRUNNER_IS_TEST"]


@pytest.mark.parallel
@pytest.mark.parametrize(
"test_dir, file_name, args, exit_code", _get_test_runs(f"{TEST_DIR}/test-files")
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_push_artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def test_artifacts_with_legacy_builder(test_name, artifacts_in_file):
)


# Test legacy builder
# Test buildx builder
@pytest.mark.parametrize(
"test_name, artifacts_in_file",
[
Expand Down

0 comments on commit 02074bf

Please sign in to comment.