Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/publish-catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
# Java bots run from source (Java 22+ multi-file launch); match the Rumble's JVM.
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
- run: python scripts/validate_bot.py --root . --owner '${{ github.event.pull_request.user.login }}' --smoke --generate
- run: |
git config user.name 'github-actions[bot]'
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.12'
# Java bots run from source (Java 22+ multi-file launch); match the Rumble's JVM.
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '25'
- run: python -m unittest discover -s tests -v
- name: Reject hand-edited generated catalog files
run: |
Expand Down
2 changes: 2 additions & 0 deletions tests/test_validate_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ def add_java_bot(self, name: str) -> None:
(destination / f"{name}.java").write_text("// dev.robocode.tankroyale.botapi", encoding="utf-8")
for suffix in (".sh", ".cmd"):
(destination / f"{name}{suffix}").write_text("", encoding="utf-8")
script = destination / f"{name}.sh"
script.chmod(script.stat().st_mode | 0o111) # the validator requires the executable bit on POSIX

def add_team(self, name: str, members: list[str]) -> None:
destination = self.root / "bots" / "python" / name
Expand Down
Loading