From e7273cf5330933f498b4dde396df4be1979f0562 Mon Sep 17 00:00:00 2001 From: Thomas Sundvoll Date: Fri, 12 Apr 2024 09:33:19 +0200 Subject: [PATCH] Run dependency workflow on a schedule --- .github/workflows/compile_requirements.yml | 8 +++++++- .github/workflows/pythonpackage.yml | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compile_requirements.yml b/.github/workflows/compile_requirements.yml index 09ee5445..a82f2cdf 100644 --- a/.github/workflows/compile_requirements.yml +++ b/.github/workflows/compile_requirements.yml @@ -5,6 +5,12 @@ on: branches: - main + schedule: + # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows + # In a public repository, scheduled workflows are automatically disabled when no + # repository activity has occurred in 60 days + - cron: "5 6 * * 1-5" # At 06:05 on every day-of-week from Monday through Friday + jobs: compile-requirements: runs-on: ubuntu-latest @@ -15,7 +21,7 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 with: - ssh-key: ${{ secrets.deploy_key }} + ssh-key: ${{ secrets.deploy_key }} - name: Set up Python uses: actions/setup-python@v5 diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml index dd7cd5c6..bd183020 100644 --- a/.github/workflows/pythonpackage.yml +++ b/.github/workflows/pythonpackage.yml @@ -1,3 +1,5 @@ +name: Run pytest + on: push: branches: