From 0c507deb6a9f270be41d46a22e884d95424d4289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?= <16805946+edgarrmondragon@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:49:22 -0600 Subject: [PATCH] ci: Add `weekly `schedule` to test workflow (#39) --- .github/workflows/test.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d6522fc..1863521 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,6 +18,9 @@ on: - .github/workflows/test.yml - .github/workflows/constraints.txt workflow_dispatch: + schedule: + # Run weekly on Monday at 12:00 PM UTC + - cron: "0 12 * * 1" jobs: test: @@ -37,8 +40,8 @@ jobs: - "3.12" - "3.13" include: - - { script: "test:dependencies", python-version: "3.12" } - - { script: "typing:check", python-version: "3.12" } + - { script: "test:dependencies", python-version: "3.x" } + - { script: "typing:check", python-version: "3.x" } steps: - uses: actions/checkout@v4 @@ -47,16 +50,16 @@ jobs: with: python-version: ${{ matrix.python-version }} allow-prereleases: true - cache: pip - uses: astral-sh/setup-uv@v2 - name: Install Hatch run: | - uv tool install --python '${{ steps.setup-python.outputs.python-path }}' hatch + uv tool install hatch hatch --version - name: Run env: + HATCH_PYTHON: ${{ steps.setup-python.outputs.python-path }} TAP_HOOKDECK_API_KEY: ${{ secrets.TAP_HOOKDECK_API_KEY }} TAP_HOOKDECK_START_DATE: ${{ secrets.TAP_HOOKDECK_START_DATE }} run: |