Skip to content

Commit 86f8ff0

Browse files
committed
Enable test in CI
1 parent 0a33aeb commit 86f8ff0

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -103,17 +103,18 @@ jobs:
103103
- name: Build project
104104
run: uv run meson compile -C build/
105105

106-
# - name: Run tests
107-
# run: |
108-
# set -eux
109-
# ARGS="--build-dir=build/ ${{ steps.setup-godot.outputs.EXTRA_RUN_TESTS_ARGS }} -- --headless"
110-
# python tests/run.py 0-gdscript $ARGS
111-
# python tests/run.py 1-gdextension $ARGS
112-
# python tests/run.py 2-init-with-python-hook $ARGS
113-
# python tests/run.py 3-init-with-cython-hook $ARGS
106+
- name: Run tests
107+
run: |
108+
set -eux
109+
ARGS="--build-dir=build/ ${{ steps.setup-godot.outputs.EXTRA_RUN_TESTS_ARGS }} -- --headless"
110+
uv run python tests/run.py 0-gdscript $ARGS
111+
uv run python tests/run.py 1-gdextension $ARGS
112+
uv run python tests/run.py 2-init-with-python-hook $ARGS
113+
uv run python tests/run.py 3-init-with-cython-hook $ARGS
114+
uv run python tests/run.py 4-use-godot-from-python $ARGS
114115
115116
# - name: Generate artifact archive
116-
# run: meson compile -C build/ release
117+
# run: uv run meson compile -C build/ release
117118

118119
# - name: Export release artifact
119120
# uses: actions/upload-artifact@11830c9f4d30053679cb8904e3b3ce1b8c00bf40 # pin@v2
@@ -192,15 +193,15 @@ jobs:
192193
- name: Build project
193194
run: uv run meson compile -C build/
194195

195-
# - name: Run tests
196-
# shell: bash
197-
# run: |
198-
# set -eux
199-
# ARGS="--build-dir=build/ ${{ steps.setup-godot.outputs.EXTRA_RUN_TESTS_ARGS }} --custom-gdextension-api=./gdextension_api -- --headless"
200-
# python tests/run.py 0-gdscript $ARGS
201-
# python tests/run.py 1-gdextension $ARGS
202-
# python tests/run.py 2-init-with-python-hook $ARGS
203-
# python tests/run.py 3-init-with-cython-hook $ARGS
196+
- name: Run tests
197+
run: |
198+
set -eux
199+
ARGS="--build-dir=build/ ${{ steps.setup-godot.outputs.EXTRA_RUN_TESTS_ARGS }} -- --headless"
200+
uv run python tests/run.py 0-gdscript $ARGS
201+
uv run python tests/run.py 1-gdextension $ARGS
202+
uv run python tests/run.py 2-init-with-python-hook $ARGS
203+
uv run python tests/run.py 3-init-with-cython-hook $ARGS
204+
uv run python tests/run.py 4-use-godot-from-python $ARGS
204205
205206
# - name: Install Mesa3D OpenGL
206207
# shell: bash
@@ -220,11 +221,8 @@ jobs:
220221
# ls -lh opengl32.dll # Sanity check
221222
# popd
222223

223-
# - name: Run tests
224-
# run: python tests/run.py --build-dir build/ --godot-binary ${{ GODOT_BINARY_VERSION }}
225-
226224
# - name: Generate artifact archive
227-
# run: meson compile -C build/ release
225+
# run: uv run meson compile -C build/ release
228226

229227
# - name: Export release artifact
230228
# uses: actions/upload-artifact@11830c9f4d30053679cb8904e3b3ce1b8c00bf40 # pin@v2

0 commit comments

Comments
 (0)