From f6ba41fed3592f6a99bba8c07f4f559a6d27e42d Mon Sep 17 00:00:00 2001 From: Alexandre Plateau Date: Sat, 25 Jan 2025 19:17:15 +0100 Subject: [PATCH] feat(ci, tests): adding a CI job to run the repl tests --- .github/workflows/ci.yml | 10 ++++++++++ tests/repl/requirements.txt | 1 + tests/repl/test.py | 2 +- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tests/repl/requirements.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07902e91..d5df3c07 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -246,6 +246,16 @@ jobs: chmod u+x ./lib/modules/.github/run-tests (./lib/modules/.github/run-tests src) + - uses: actions/setup-python@v5 + with: + python-version: '3.13' + + - name: REPL tests + shell: bash + run: | + pip install -r tests/repl/requirements.txt + python3 tests/repl/test.py + fuzzing: runs-on: ubuntu-24.04 name: Fuzz testing diff --git a/tests/repl/requirements.txt b/tests/repl/requirements.txt new file mode 100644 index 00000000..808fb07a --- /dev/null +++ b/tests/repl/requirements.txt @@ -0,0 +1 @@ +pexpect diff --git a/tests/repl/test.py b/tests/repl/test.py index c33c2aec..d166bd3d 100644 --- a/tests/repl/test.py +++ b/tests/repl/test.py @@ -5,7 +5,7 @@ def get_repl(): executable = None - for p in ["./arkscript", "cmake-build-debug/arkscript", "build/arkscript"]: + for p in ["./arkscript", "cmake-build-debug/arkscript", "build/arkscript", "build/arkscript.exe"]: if os.path.exists(p): executable = p break