Skip to content

Commit

Permalink
ci: parallelize some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
moe-ad committed Feb 5, 2025
1 parent acffb5f commit 00dccf4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 58 deletions.
61 changes: 3 additions & 58 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,46 +238,14 @@ jobs:
run: |
tox -e pretest
- name: "Test API"
shell: bash
run: |
tox -e test-api,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
- name: "Test API test_launcher"
- name: "Run compatible tests in parallel"
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
timeout_minutes: 15
max_attempts: 2
shell: bash
command: |
tox -e test-launcher,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
- name: "Test API test_server"
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 2
shell: bash
command: |
tox -e test-server,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
- name: "Test API test_local_server"
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 2
shell: bash
command: |
tox -e test-local_server,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
- name: "Test API test_multi_server"
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 2
shell: bash
command: |
tox -e test-multi_server,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
tox run-parallel -m ciparalleltests ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
- name: "Test API test_remote_workflow"
uses: nick-fields/retry@v3
Expand Down Expand Up @@ -311,29 +279,6 @@ jobs:
command: |
tox -e test-service,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
- name: "Test API Entry"
shell: bash
run: |
tox -e test-api_entry,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
- name: "Test API test_custom_type_field"
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 2
shell: bash
command: |
tox -e test-custom_type_field,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
- name: "Test Operators"
uses: nick-fields/retry@v3
with:
timeout_minutes: 10
max_attempts: 2
shell: bash
command: |
tox -e test-operators,kill-servers ${{ steps.tox-cli-arguments.outputs.TOX_EXTRA_ARG }}
- name: "Combine coverage results"
shell: bash
run: |
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ envlist = pretest,test-{api,launcher,server,local_server,multi_server,api_entry,

labels =
othertests = pretest,test-{workflow,remote_workflow,remote_operator,service},posttest,kill-servers
ciparalleltests = test-{api,launcher,server,local_server,multi_server,api_entry,custom_type_field,operators},kill-servers

isolated_build_env = build

Expand Down

0 comments on commit 00dccf4

Please sign in to comment.