Skip to content

feat/launch_bat_c++_build_tools (#48) #82

feat/launch_bat_c++_build_tools (#48)

feat/launch_bat_c++_build_tools (#48) #82

name: Python Unit Test
# Run when PRs are made to merge into main and after commits to main.
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
env:
# Disable venv use for simpler testing.
USE_VENV: false
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
run: $GITHUB_WORKSPACE/launch.sh
- name: Test with unittest
run: |
# Store output in GITHUB_STEP_SUMMARY for easy reading on Github.com
python -m unittest -v $GITHUB_WORKSPACE/tests/*.py 2>&1 | tee $GITHUB_STEP_SUMMARY
# If python test fails, we want the step to fail.
exit ${PIPESTATUS[0]}