Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated CI workflow to run manually as well #284

Merged
merged 7 commits into from
Mar 6, 2025
1 change: 1 addition & 0 deletions .github/workflows/pull_request_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
types: [opened, synchronize]
push:
branches: [master]
workflow_dispatch:

# Here is the list of jobs that this workflow will run. There is only one job.
jobs:
Expand Down
2 changes: 1 addition & 1 deletion executor/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LIBS=-pthread -lrt -Wall -export-dynamic -fPIC
SRCS = executor.c gamestate_filter.c ../logger/logger.c ../runtime_util/runtime_util.c ../shm_wrapper/shm_wrapper.c

# Python compilation definitions
PY_VER = python3.10
PY_VER = python3.12
PY_LIB = -l$(PY_VER)
CFLAGS = $(shell $(PY_VER)-config --cflags)

Expand Down
2 changes: 1 addition & 1 deletion executor/executor.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#define PY_SSIZE_T_CLEAN
#include <arpa/inet.h> //for networking
#include <pthread.h> //for POSIX threads
#include <python3.10/Python.h> // For Python's C API
#include <python3.12/Python.h> // For Python's C API
#include <signal.h> // Used to handle SIGTERM, SIGINT, SIGKILL
#include <stdint.h> //for standard int types
#include <stdio.h> //for i/o
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/tc_71_2.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@
*/

char check_output_6[] =
"line 25, in teleop_main\n"
" File \"/home/runner/work/runtime/runtime/tests/student_code/executor_sanity.py\", line 25, in teleop_main\n"
" oops = 1 / 0\n"
" ~~^~~\n"
"ZeroDivisionError: division by zero\n";

int main() {
Expand Down