Create test system using doctest #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests | |
on: | |
pull_request: | |
types: [opened, edited, reopened, synchronize] | |
jobs: | |
ci: | |
name: Run Unit Tests | |
runs-on: ubuntu-20.04 | |
container: | |
image: barichello/godot-ci:4.2.1 | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up Python (for SCons) | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install scons | |
run: | | |
python -m pip install scons | |
- name: Build module | |
run: | | |
cd godot-cpp | |
scons platform=linux target=template_debug | |
cd .. | |
scons platform=linux target=template_debug disable_exceptions=no | |
- name: Run tests | |
run: | | |
set -e | |
godot --headless -T |