From 545f2dfb2366b5abbdcf4dfef161eba5a22e4f31 Mon Sep 17 00:00:00 2001 From: Benjamin Thomas Schwertfeger Date: Mon, 13 Jan 2025 20:05:09 +0100 Subject: [PATCH] Update CI configuration --- .github/workflows/_docker_publish.yaml | 6 ++++++ .github/workflows/scorecard.yaml | 2 +- tests/integration/helper.py | 8 +++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/_docker_publish.yaml b/.github/workflows/_docker_publish.yaml index 8e3902e..024cf60 100644 --- a/.github/workflows/_docker_publish.yaml +++ b/.github/workflows/_docker_publish.yaml @@ -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 @@ -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 diff --git a/.github/workflows/scorecard.yaml b/.github/workflows/scorecard.yaml index 08ec517..6127015 100644 --- a/.github/workflows/scorecard.yaml +++ b/.github/workflows/scorecard.yaml @@ -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"] diff --git a/tests/integration/helper.py b/tests/integration/helper.py index 38ac4b3..5bfd04e 100644 --- a/tests/integration/helper.py +++ b/tests/integration/helper.py @@ -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"},