@@ -2,68 +2,68 @@ name: PANOSETI gRPC CI
22
33on :
44 push :
5- branches : [ tests ]
5+ branches : [ main, tests ]
66 pull_request :
7- branches : [ tests ]
7+ branches : [ main ]
88
99jobs :
10- # daq-data-build-and-test:
11- # runs-on: ubuntu-latest
12- # steps:
13- # # Checks-out repository
14- # - name: Checkout repository
15- # uses: actions/checkout@v3
16- #
17- # # Set up Docker Buildx
18- # # enables advanced features like multi-platform builds and cache management.
19- # - name: Set up Docker Buildx
20- # uses: docker/setup-buildx-action@v3
21- #
22- # #Build the Docker image with cache enabled
23- # # This step builds the image and pushes the cache to the GitHub Actions cache.
24- # # The 'load: true' flag makes the image available to subsequent steps in the same job.
25- # - name: Build and cache Docker image
26- # uses: docker/build-push-action@v5
27- # with:
28- # context: .
29- # file: ./tests/daq_data/Dockerfile
30- # load: true # Makes the image available for the next step
31- # tags: panoseti-grpc-test-daq-data:latest
32- # cache-from: type=gha # Pulls cache from GitHub Actions cache
33- # cache-to: type=gha,mode=max # Pushes cache to GitHub Actions cache
34- #
35- # # Run tests inside the now-cached Docker container
36- # - name: Run Pytest in container
37- # run: docker run --rm panoseti-grpc-test-daq-data:latest
38- #
39- # ublox-control-build-and-test:
40- # runs-on: ubuntu-latest
41- # steps:
42- # # Checks-out repository
43- # - name: Checkout repository
44- # uses: actions/checkout@v3
45- #
46- # # Set up Docker Buildx
47- # # enables advanced features like multi-platform builds and cache management.
48- # - name: Set up Docker Buildx
49- # uses: docker/setup-buildx-action@v3
50- #
51- # #Build the Docker image with cache enabled
52- # # This step builds the image and pushes the cache to the GitHub Actions cache.
53- # # The 'load: true' flag makes the image available to subsequent steps in the same job.
54- # - name: Build and cache Docker image
55- # uses: docker/build-push-action@v5
56- # with:
57- # context: .
58- # file: ./tests/ublox_control/Dockerfile
59- # load: true # Makes the image available for the next step
60- # tags: panoseti-grpc-test-ublox-control:latest
61- # cache-from: type=gha # Pulls cache from GitHub Actions cache
62- # cache-to: type=gha,mode=max # Pushes cache to GitHub Actions cache
63- #
64- # # Run tests inside the now-cached Docker container
65- # - name: Run Pytest in container
66- # run: docker run --rm panoseti-grpc-test-ublox-control:latest
10+ daq-data-build-and-test :
11+ runs-on : ubuntu-latest
12+ steps :
13+ # Checks-out repository
14+ - name : Checkout repository
15+ uses : actions/checkout@v3
16+
17+ # Set up Docker Buildx
18+ # enables advanced features like multi-platform builds and cache management.
19+ - name : Set up Docker Buildx
20+ uses : docker/setup-buildx-action@v3
21+
22+ # Build the Docker image with cache enabled
23+ # This step builds the image and pushes the cache to the GitHub Actions cache.
24+ # The 'load: true' flag makes the image available to subsequent steps in the same job.
25+ - name : Build and cache Docker image
26+ uses : docker/build-push-action@v5
27+ with :
28+ context : .
29+ file : ./tests/daq_data/Dockerfile
30+ load : true # Makes the image available for the next step
31+ tags : panoseti-grpc-test-daq-data:latest
32+ cache-from : type=gha # Pulls cache from GitHub Actions cache
33+ cache-to : type=gha,mode=max # Pushes cache to GitHub Actions cache
34+
35+ # Run tests inside the now-cached Docker container
36+ - name : Run Pytest in container
37+ run : docker run --rm panoseti-grpc-test-daq-data:latest
38+
39+ ublox-control-build-and-test :
40+ runs-on : ubuntu-latest
41+ steps :
42+ # Checks-out repository
43+ - name : Checkout repository
44+ uses : actions/checkout@v3
45+
46+ # Set up Docker Buildx
47+ # enables advanced features like multi-platform builds and cache management.
48+ - name : Set up Docker Buildx
49+ uses : docker/setup-buildx-action@v3
50+
51+ # Build the Docker image with cache enabled
52+ # This step builds the image and pushes the cache to the GitHub Actions cache.
53+ # The 'load: true' flag makes the image available to subsequent steps in the same job.
54+ - name : Build and cache Docker image
55+ uses : docker/build-push-action@v5
56+ with :
57+ context : .
58+ file : ./tests/ublox_control/Dockerfile
59+ load : true # Makes the image available for the next step
60+ tags : panoseti-grpc-test-ublox-control:latest
61+ cache-from : type=gha # Pulls cache from GitHub Actions cache
62+ cache-to : type=gha,mode=max # Pushes cache to GitHub Actions cache
63+
64+ # Run tests inside the now-cached Docker container
65+ - name : Run Pytest in container
66+ run : docker run --rm panoseti-grpc-test-ublox-control:latest
6767 real-daq-robustness-tests :
6868 name : Real DAQ Robustness Tests
6969 runs-on : ubuntu-latest
9393 --shm-size=2g \
9494 --env RUN_REAL_DATA_TESTS=${RUN_REAL_DATA_TESTS} \
9595 panoseti-grpc-test-real-daq:latest \
96- python3 -m pytest -v tests/daq_data_hashpipe/
96+ python3 -m pytest -s -v --maxfail=2 tests/daq_data_hashpipe/
9797
0 commit comments