Skip to content

Commit

Permalink
ci: Add weekly schedule` to test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Oct 2, 2024
1 parent e3fb355 commit 74409fb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit 74409fb

Please sign in to comment.