-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: Align priority moves with generalsio * fix: Make online observations include priority * ci: Add Code Embedder by @kvankova to keep READMEs up-to-date * refactor(exceptions): make exceptions extensible Next step should be to utilize exceptions instead of `assert`. The main advantage of it is that you can catch specific exception instead of `AssertionError`. * ci: fix code-embedder action The manual setting of referrence breaks the checkout action. I am not entirely sure why it was needed, or what was the intended behaviour, but checkout action by default switches to feature branch (branch which is used as source for PR). * ci: rework GitHub actions It is more of an update and simplification of triggeres and update of some action versions. * chore: Fix pytests --------- Co-authored-by: Juraj Paluba <[email protected]>
- Loading branch information
Showing
9 changed files
with
36 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
name: Check commits for Conventional Commits practices | ||
|
||
on: | ||
pull_request: | ||
branches: [master] | ||
push: | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Check Commit Messages | ||
uses: webiny/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
class GeneralsBotError(Exception): | ||
"""Base generals-bot exception""" | ||
|
||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
from .generalsio_client import GeneralsBotError, GeneralsIOClient, GeneralsIOClientError, autopilot | ||
from .generalsio_client import GeneralsIOClient, GeneralsIOClientError, autopilot | ||
|
||
__all__ = [ | ||
"autopilot", | ||
"GeneralsBotError", | ||
"GeneralsIOClientError", | ||
"GeneralsIOClient", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from generals import GeneralsBotError | ||
|
||
|
||
class GeneralsIOClientError(GeneralsBotError): | ||
"""Base GeneralsIOClient exception""" | ||
|
||
pass | ||
|
||
|
||
class RegisterAgentError(GeneralsIOClientError): | ||
"""Registering bot error""" | ||
|
||
def __init__(self, msg: str) -> None: | ||
super().__init__() | ||
self.msg = msg | ||
|
||
def __str__(self) -> str: | ||
return f"Failed to register the agent. Error: {self.msg}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters