-
Notifications
You must be signed in to change notification settings - Fork 74
Expand file tree
/
Copy pathrun-test-suite-multiple-node.yml
More file actions
39 lines (32 loc) · 1.19 KB
/
run-test-suite-multiple-node.yml
File metadata and controls
39 lines (32 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 }}"