Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI configuration #54

Merged
merged 1 commit into from
Jan 13, 2025
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
6 changes: 6 additions & 0 deletions .github/workflows/_docker_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
contents: read
attestations: write
id-token: write
environment:
name: Docker Hub
url: https://hub.docker.com/repository/docker/btschwertfeger/kraken-infinity-grid
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
Expand Down Expand Up @@ -60,6 +63,9 @@ jobs:
${{ env.IMAGE_NAME }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build and push Docker images
id: push
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: "15 5 * * 7"
- cron: "29 19 * * 5"
push:
branches: ["master"]

Expand Down
8 changes: 3 additions & 5 deletions tests/integration/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ class KrakenAPI(Trade, User):

TODOs:

- [ ] Properly handle updating the user's current balances. While being at
it, ensure the integration tests cover cases where the balances are
not sufficient.
- [ ] Properly handle updating the user's current balances.
"""

def __init__(self: Self, **kwargs) -> None: # noqa: ANN003
super().__init__(**kwargs)
def __init__(self: Self) -> None:
super().__init__() # DONT PASS SECRETS!
self.__orders = {}
self.__balances = {
"XXBT": {"balance": "100.0", "hold_trade": "0.0"},
Expand Down
Loading