From 91d33a0972405a68c98b2ba026314504531db773 Mon Sep 17 00:00:00 2001 From: bohd4nx Date: Thu, 5 Mar 2026 04:10:57 +0200 Subject: [PATCH] ci: add dependabot and pytest workflow --- .github/dependabot.yml | 10 ++++++++++ .github/workflows/tests.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/tests.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..25b94b6 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,10 @@ +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "weekly" + day: "monday" + open-pull-requests-limit: 5 + labels: + - "dependencies" diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..f1619ed --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,28 @@ +name: Tests + +on: + push: + branches: ["**"] + pull_request: + branches: ["**"] + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + cache: "pip" + + - name: Install dependencies + run: pip install -r requirements.txt pytest pytest-asyncio + + - name: Run tests + run: pytest + env: + SEED: ${{ secrets.SEED }} + API_KEY: ${{ secrets.API_KEY }}