Gitlab runner can not wake up my mac when it goes to sleep

We set up our private gitlab server on the cloud and gitlab-runner on a mac at the office. When the mac does not go to sleep it works well. But when it goes to sleep the runner won’t wake.

I already set “wake for network access” but it does not work. The pipeline job won’t run when the mac goes to sleep.
I further test that if I use Fing on my iPhone to wake the mac the pipeline job will then wake up to run but it will stop at the step where it needs to start a GUI test tool to actually run the test case.

Does anyone have any experience with that ? I can’t just turn on the mac 24*7.