test: add many more test cases for checking uds stability and pff hea… #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: panoseti_daq ci | |
| on: | |
| push: | |
| branches: [ main, test-build-action, uds-to-grpc] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| compile-test: | |
| name: Test compilation and individual test files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Build and cache Docker image | |
| id: build_image | |
| uses: docker/build-push-action@v5 | |
| with: | |
| context: . | |
| file: ./tests/ci_tests/Dockerfile | |
| load: true | |
| tags: panoseti-daq:latest | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| # Individual test file runs for better granularity | |
| - name: Run test_can_hashpipe_init.py | |
| run: | | |
| docker run --rm --shm-size=2g panoseti-daq:latest \ | |
| python3 -m pytest -s -v --maxfail=1 tests/ci_tests/test_can_hashpipe_init.py | |
| - name: Run test_pff_header_consistency.py | |
| run: | | |
| docker run --rm --shm-size=2g panoseti-daq:latest \ | |
| python3 -m pytest -s -v --maxfail=1 tests/ci_tests/test_pff_header_consistency.py | |
| - name: Run test_uds_data_path.py | |
| run: | | |
| docker run --rm --shm-size=2g panoseti-daq:latest \ | |
| python3 -m pytest -s -v --maxfail=1 tests/ci_tests/test_uds_data_path.py | |
| - name: Run test_uds_resilience.py | |
| run: | | |
| docker run --rm --shm-size=2g panoseti-daq:latest \ | |
| python3 -m pytest -s -v --maxfail=1 tests/ci_tests/test_uds_resilience.py |