Skip to content

Update README.md again #47

Update README.md again

Update README.md again #47

Workflow file for this run

name: PANOSETI gRPC CI
on:
push:
branches: [ main, tests ]
pull_request:
branches: [ main ]
jobs:
daq-data-build-and-test:
runs-on: ubuntu-latest
steps:
# Checks-out repository
- name: Checkout repository
uses: actions/checkout@v3
# Set up Docker Buildx
# enables advanced features like multi-platform builds and cache management.
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
#Build the Docker image with cache enabled
# This step builds the image and pushes the cache to the GitHub Actions cache.
# The 'load: true' flag makes the image available to subsequent steps in the same job.
- name: Build and cache Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./tests/daq_data/Dockerfile
load: true # Makes the image available for the next step
tags: panoseti-grpc-test-daq-data:latest
cache-from: type=gha # Pulls cache from GitHub Actions cache
cache-to: type=gha,mode=max # Pushes cache to GitHub Actions cache
# Run tests inside the now-cached Docker container
- name: Run Pytest in container
run: docker run --rm panoseti-grpc-test-daq-data:latest
ublox-control-build-and-test:
runs-on: ubuntu-latest
steps:
# Checks-out repository
- name: Checkout repository
uses: actions/checkout@v3
# Set up Docker Buildx
# enables advanced features like multi-platform builds and cache management.
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
#Build the Docker image with cache enabled
# This step builds the image and pushes the cache to the GitHub Actions cache.
# The 'load: true' flag makes the image available to subsequent steps in the same job.
- name: Build and cache Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./tests/ublox_control/Dockerfile
load: true # Makes the image available for the next step
tags: panoseti-grpc-test-ublox-control:latest
cache-from: type=gha # Pulls cache from GitHub Actions cache
cache-to: type=gha,mode=max # Pushes cache to GitHub Actions cache
# Run tests inside the now-cached Docker container
- name: Run Pytest in container
run: docker run --rm panoseti-grpc-test-ublox-control:latest
real-daq-robustness-tests:
name: Real DAQ Robustness Tests
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 for real DAQ tests
uses: docker/build-push-action@v5
with:
context: .
file: ./tests/daq_data_hashpipe/Dockerfile
load: true
tags: panoseti-grpc-test-real-daq:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Real DAQ Robustness Tests in container
env:
# This environment variable enables the hashpipe_pcap_runner fixture
RUN_REAL_DATA_TESTS: "1"
run: |
docker run --rm \
--shm-size=2g \
--env RUN_REAL_DATA_TESTS=${RUN_REAL_DATA_TESTS} \
panoseti-grpc-test-real-daq:latest \
python3 -m pytest -s -v --maxfail=2 tests/daq_data_hashpipe/