forked from irods/python-irodsclient
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1013 Bytes
/
run-the-tests.yml
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
name: run-the-tests
on: [push, pull_request]
jobs:
tests:
timeout-minutes: 20
name: ${{ matrix.python }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docker-testing
strategy:
matrix:
# python: ['2.7','3.4','3.6','3.7','3.8','3.9','3.10','3.11','3.12']
# python: ['2.7','3.4']
python: ['3.6']
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Start containers
run: ./start_containers.sh "${{ 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/docker-testing/run_tests.sh
- name: Stop containers
if: always()
run: docker compose -f harness-docker-compose.yml down