Skip to content

Update github workspace var #24

Update github workspace var

Update github workspace var #24

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@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- 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 $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/