diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 29fbfc22..61734fe7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,13 @@ on: pull_request: # Allow manual runs through the web UI workflow_dispatch: + schedule: + # ┌───────── minute (0 - 59) + # │ ┌───────── hour (0 - 23) + # │ │ ┌───────── day of the month (1 - 31) + # │ │ │ ┌───────── month (1 - 12 or JAN-DEC) + # │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT) + - cron: '0 7 * * 1' # Every day at 07:00 UTC concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -57,6 +64,7 @@ jobs: - windows: py311 - macos: py310 - linux: py310-oldestdeps + - linux: py312-devdeps secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} @@ -89,24 +97,6 @@ jobs: secrets: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - cron: - if: | - github.event_name == 'workflow_dispatch' || ( - github.event_name == 'pull_request' && - contains(github.event.pull_request.labels.*.name, 'Run cron CI') - ) - uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1 - with: - default_python: '3.12' - submodules: false - coverage: codecov - toxdeps: tox-pypi-filter - posargs: -n auto --dist loadgroup - envs: | - - linux: py311-devdeps - secrets: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - publish: # Build wheels on PRs only when labelled. Releases will only be published if tagged ^v.* # see https://github-actions-workflows.openastronomy.org/en/latest/publish.html#upload-to-pypi diff --git a/.github/workflows/scheduled_builds.yml b/.github/workflows/scheduled_builds.yml deleted file mode 100644 index 1a593e3b..00000000 --- a/.github/workflows/scheduled_builds.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Scheduled builds - -on: - # Allow manual runs through the web UI - workflow_dispatch: - schedule: - # ┌───────── minute (0 - 59) - # │ ┌───────── hour (0 - 23) - # │ │ ┌───────── day of the month (1 - 31) - # │ │ │ ┌───────── month (1 - 12 or JAN-DEC) - # │ │ │ │ ┌───────── day of the week (0 - 6 or SUN-SAT) - - cron: '0 7 * * *' # Every day at 07:00 UTC - -jobs: - dispatch_workflows: - runs-on: ubuntu-latest - steps: - - run: gh workflow run ci.yml --repo sunpy/sunkit-instrument --ref main - env: - GITHUB_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}