Skip to content

updated ci.yml, testing on dev branch. #19

updated ci.yml, testing on dev branch.

updated ci.yml, testing on dev branch. #19

Workflow file for this run

name: panoseti_daq ci
on:
push:
branches: [ main, test-build-action, uds-to-grpc, dev]
pull_request:
branches: [ main ]
jobs:
compile-test:
name: Test compilation and individual test files
runs-on: ubuntu-latest
timeout-minutes: 25 # Overall job timeout
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
# Quick functionality tests
- name: Run basic functionality tests
timeout-minutes: 5
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
# Framework resilience tests
- name: Run UDS resilience tests
timeout-minutes: 5
run: |
docker run --rm --shm-size=2g panoseti-daq:latest \
python3 -m pytest -s -v --maxfail=1 tests/ci_tests/test_uds_resilience.py
# Data integrity tests
- name: Run UDS data path tests
timeout-minutes: 5
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
# Filesystem-dependent tests (need more time in containers)
- name: Run PFF header consistency tests
timeout-minutes: 5
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