Skip to content

Commit

Permalink
Run system tests on GH actions for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
theotherp committed Nov 20, 2023
1 parent 522b4c1 commit f4fd23b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/system-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,10 @@ jobs:

- name: "Start NZBHydra"
run: |
Start-Process .\NZBHydra2.exe
# Produces "The specified executable is not a valid application for this OS platform." on GH runner.
# Start-Process .\NZBHydra2.exe
$Env:SPRING_PROFILES_ACTIVE= "build,systemtest,core"
Start-Process .\core.exe directstart
- name: Set up JDK 17
uses: actions/setup-java@v3
Expand Down
9 changes: 3 additions & 6 deletions docker/docker-compose-systemtest/windows/docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
version: '3'
networks:
systemtest:
external: true
services:
mockserver:
image: ghcr.io/theotherp/mockserver:3.1.0
Expand All @@ -10,7 +7,7 @@ services:
- "5080:5080"
environment:
- spring_profiles_active=build,systemtest
networks: [ "host" ]
network_mode: "host"
restart: unless-stopped
sonarr:
image: lscr.io/linuxserver/sonarr:latest
Expand All @@ -23,7 +20,7 @@ services:
- ../../sonarr/data:/config
ports:
- "8989:8989"
networks: [ "host" ]
network_mode: "host"
restart: unless-stopped
radarr:
image: lscr.io/linuxserver/radarr:latest
Expand All @@ -36,5 +33,5 @@ services:
- ../../radarr/data:/config
ports:
- "7878:7878"
networks: [ "host" ]
network_mode: "host"
restart: unless-stopped
2 changes: 1 addition & 1 deletion other/wrapper/pyInstaller/windows/systemTray.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def shutdown():
if result.status_code != 200:
nzbhydra2wrapperPy3.process.terminate()
stop()
elif nzbhydra2wrapperPy3.process is not None:
elif hasattr(nzbhydra2wrapperPy3, "process") and nzbhydra2wrapperPy3.process is not None:
nzbhydra2wrapperPy3.process.terminate()
stop()
else:
Expand Down

0 comments on commit f4fd23b

Please sign in to comment.