Skip to content

Commit

Permalink
ci:remove godot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
limuy2022 committed Jun 11, 2024
1 parent ded6e86 commit 23f79fe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/rust_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,4 @@ jobs:
run: cd gdrust && cargo test --all
- name: Run tests Release
run: cd gdrust && cargo test --all --release
- name: Install Godot
run: wget https://github.com/godotengine/godot/releases/download/4.2.2-stable/Godot_v4.2.2-stable_linux.x86_64.zip && unzip Godot_v4.2.2-stable_linux.x86_64.zip && mv ./Godot_v4.2.2-stable_linux.x86_64 ./godot
- name: Godot Test
run: cd script && python godot_test.py

4 changes: 0 additions & 4 deletions gdrust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,5 @@ lto = true
codegen-units = 1
strip = true

[profile.action]
inherits = "dev"
features = ["action"]

[workspace]
members = [".", "derive"]
4 changes: 0 additions & 4 deletions gdrust/src/fight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ impl Fight {

#[func]
fn end_fight(&mut self) {
#[cfg(feature = "action")]
{
self.exit_tree();
}
godot_print!("end fight")
}
}
9 changes: 6 additions & 3 deletions script/godot_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
"""

import os

from utils import msg_system

def test_scene(path:str):
msg_system(f"godot --headless {path}", "Run failed")

def test_scene(path: str):
msg_system(f"./godot --headless {path}", "Run failed")


os.chdir("..")
with open("test_scene", "r") as files:
Expand All @@ -15,4 +18,4 @@ def test_scene(path:str):
if not i.endswith(".tscn"):
print(f"Warning:{i} is not a .tscn file.Ignore")
continue
test_scene(i)
test_scene(i)

0 comments on commit 23f79fe

Please sign in to comment.