This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
Periodic CI #56
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 compatibility | |
# with the latest versions of all modules neophile depends on, since neophile | |
# (being a PyPI application) does not pin its dependencies. | |
name: Periodic CI | |
"on": | |
schedule: | |
- cron: "0 12 * * 1" | |
workflow_dispatch: {} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
python: | |
- "3.11" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run tox | |
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 }} | |
docs: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Ensure the documentation gets the right version. | |
fetch-depth: 0 | |
- name: Update package lists | |
run: sudo apt-get update | |
- name: Install extra packages | |
run: sudo apt install -y graphviz | |
- name: Run tox | |
uses: lsst-sqre/run-tox@v1 | |
with: | |
python-version: "3.11" | |
tox-envs: "docs,docs-linkcheck" | |
use-cache: false | |
- name: Report status | |
if: always() | |
uses: ravsamhq/notify-slack-action@v2 | |
with: | |
status: ${{ job.status }} | |
notify_when: "failure" | |
notification_title: "Periodic documentation build for {repo} failed" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ALERT_WEBHOOK }} | |
pypi: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
needs: [test, docs] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # full history for setuptools_scm | |
- name: Build and publish | |
uses: lsst-sqre/build-and-publish-to-pypi@v2 | |
with: | |
python-version: "3.11" | |
upload: false | |
- name: Report status | |
if: always() | |
uses: ravsamhq/notify-slack-action@v2 | |
with: | |
status: ${{ job.status }} | |
notify_when: "failure" | |
notification_title: "Periodic PyPI test for {repo} failed" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ALERT_WEBHOOK }} |