-
Notifications
You must be signed in to change notification settings - Fork 74
[#697] Github actions to run all PRC tests #772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0a99f3c
e2f49b0
9fdbb29
45dfe92
89375e9
14a3895
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| # Run a set of tests, each in its own container and with a potentially customized setup. | ||
|
|
||
| # To this end, each test is launched via docker_container_driver.sh, part of the single-node | ||
| # test harness machinery whose implementation and documentation is to be found in the | ||
| # `irods/test/harness` directory. | ||
|
|
||
| # A test may be written as a Bash or BATS script, but the only real requirement is that it be | ||
| # executable. | ||
|
|
||
| name: run-test-programs-single-node | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
| tests: | ||
| name: Python ${{ matrix.python }}, iRODS ${{ matrix.irods_server }} | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: ./test_harness/single_node | ||
| strategy: | ||
| matrix: | ||
| python: ['3.9','3.13'] | ||
| irods_server: ['4.3.4','5.0.2'] | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Build images | ||
| run: ./create_docker_images.sh "${{ matrix.irods_server }}" "${{ matrix.python }}" | ||
|
|
||
| - name: run tests | ||
| run: | | ||
| for script in \ | ||
| ../../irods/test/scripts/test[0-9]* \ | ||
| ../../irods/test/login_auth_test_*.py | ||
| do | ||
| ./docker_container_driver.sh -V $script | ||
| done |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| # Create a networked set of containers (via a Docker compose project) on which to run the client test suite. | ||
| # (For further information, see the README in `docker-testing`.) | ||
|
|
||
| name: run-test-suite-multiple-node | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
| tests: | ||
| name: Python ${{ matrix.python }}, iRODS ${{ matrix.irods_server }} | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: ./test_harness/multiple_node | ||
| strategy: | ||
| matrix: | ||
| python: ['3.9','3.13'] | ||
| irods_server: ['4.3.4','5.0.2'] | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Start containers | ||
| run: ./start_containers.sh "${{ matrix.irods_server }}" "${{ matrix.python }}" | ||
|
|
||
| - name: run test | ||
| run: | | ||
| while :; do | ||
| client_container=$(docker ps --format "{{.Names}}"|grep python.client) | ||
| [ -n "$client_container" ] && break | ||
| sleep 1 | ||
| done | ||
| echo "client_container = [$client_container]" | ||
| docker exec "${client_container}" /repo_root/test_harness/multiple_node/run_tests.sh | ||
|
|
||
| - name: Stop containers | ||
| if: always() | ||
| run: ./stop_containers.sh "${{ matrix.irods_server }}" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Run the client test suite in a Docker container, targeting a locally running instance of the iRODS server. | ||
| # (Documentation and implementation for the test harness may be found in `irods/test/harness`.) | ||
|
|
||
| name: run-test-suite-single-node | ||
|
|
||
| on: [push, pull_request] | ||
|
|
||
| jobs: | ||
| tests: | ||
| name: Python ${{ matrix.python }}, iRODS ${{ matrix.irods_server }} | ||
| runs-on: ubuntu-latest | ||
| defaults: | ||
| run: | ||
| working-directory: ./test_harness/single_node | ||
| strategy: | ||
| matrix: | ||
| python: ['3.9','3.13'] | ||
| irods_server: ['4.3.4','5.0.2'] | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Build images | ||
| run: ./create_docker_images.sh "${{ matrix.irods_server }}" "${{ matrix.python }}" | ||
|
|
||
| - name: run tests | ||
| run: | | ||
| ./docker_container_driver.sh -V ../../irods/test/scripts/run_suite_locally.sh |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.