Skip to content

Check error before walking file path #2882

Check error before walking file path

Check error before walking file path #2882

Workflow file for this run

name: Turbinia Test Run
on: [push, pull_request]
jobs:
install-n-test:
name: Install Turbinia dependencies and run tests.
runs-on: ubuntu-latest
strategy:
matrix:
os:
- ubuntu-24.04
gift_ppa_track: ["staging", "stable"]
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Buid Turbinia Unit Tests Docker image
uses: docker/build-push-action@v5
with:
file: docker/tests/Dockerfile
context: .
build-args: |
"PPA_TRACK=${{ matrix.gift_ppa_track }}"
load: true
tags: turbinia-unit-tests
cache-from: type=gha,scope=unittests
cache-to: type=gha,mode=max,scope=unittests
- name: Run test (turbinia-unit-tests) container
run: |
docker run --name turbinia-unit-tests --entrypoint "/bin/bash" -it -d -t turbinia-unit-tests:latest
- name: Configure python3
run: |
docker exec -u root -t turbinia-unit-tests bash -c "update-alternatives --install /usr/bin/python python /usr/bin/python3 1"
docker exec -u root -t turbinia-unit-tests bash -c "/usr/bin/python -V"
- name: Run Tests
run: |
docker exec -u root -t turbinia-unit-tests bash -c "poetry run ./run_tests.py"
docker exec -u root -t turbinia-unit-tests bash -c "tox --sitepackages ${TOXENV}"