This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
Periodic CI #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a separate run of the Python test suite that doesn't cache the tox | |
# environment and runs from a schedule. The purpose is to test whether | |
# updating pinned dependencies would cause any tests to fail. | |
name: Periodic CI | |
"on": | |
schedule: | |
- cron: "0 12 * * 1" | |
workflow_dispatch: {} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
python: | |
- "3.10" | |
- "3.11" | |
steps: | |
- uses: actions/checkout@v4 | |
# Ideally we would use the oldest supported version of Python to update | |
# dependencies, not the matrixed Python version, since this accurately | |
# reflects how dependencies should later be updated. However, neophile | |
# only supports Python 3.11, so we have to use at least that version. | |
- uses: lsst-sqre/run-neophile@v1 | |
with: | |
python-version: "3.11" | |
mode: update | |
- uses: lsst-sqre/run-tox@v1 | |
with: | |
python-version: ${{ matrix.python }} | |
tox-envs: "lint,typing,py" | |
use-cache: false | |
- name: Report status | |
if: always() | |
uses: ravsamhq/notify-slack-action@v2 | |
with: | |
status: ${{ job.status }} | |
notify_when: "failure" | |
notification_title: "Periodic test for {repo} failed" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ALERT_WEBHOOK }} |