Skip to content

Workflow file for this run

on:
push:
branches: [ '*' ]
jobs:
run-python-unit-tests:
name: Run python unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build and run unit test Dockerfile
uses: ./.github/actions/unit-test-action
# - name: Build Docker image
# run: |
# docker build -t python_measure_test .
# docker run --rm python_measure_test
- name: Check for FAILURE in pytest_output.txt
run: |
pwd
ls -la $GITHUB_WORKSPACE
ls $GITHUB_WORKSPACE/test_results
# cat test_results/pytest_output.txt
# if grep -q 'FAILURE' test_results/pytest_output.txt; then
# exit 1
# fi
- name: Upload Test Results
uses: actions/upload-artifact@v3
with:
name: test_results
path: $GITHUB_WORKSPACE/test_results/