add: uds-to-grpc to the list of ci branches #4
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 simple functionality | |
| 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 | |
| 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 | |
| - name: Run Hashpipe in a container | |
| run: | | |
| docker run --rm \ | |
| --shm-size=2g \ | |
| panoseti-daq:latest \ | |
| python3 -m pytest -s -v --maxfail=2 tests/ci_tests/ | |