-
Notifications
You must be signed in to change notification settings - Fork 76
62 lines (57 loc) · 1.82 KB
/
ci_cron_weekly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# GitHub Actions workflow that runs on a cron schedule.
name: Cron Scheduled CI Tests
on:
workflow_dispatch:
schedule:
# run at 9am UTC on Mondays
- cron: '0 9 * * 1'
jobs:
# The linkcheck job tests that the links in the docs point to real places
# The if statement is to prevent cron from running on forks.
linkcheck:
runs-on: ubuntu-latest
if: github.repository == 'spacetelescope/jdaviz'
steps:
- uses: actions/checkout@v2
- name: Set up Python to build docs with sphinx
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install base dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Check links in docs using tox
run: |
tox -e linkcheck
# everything except the matrix is copied-and-pasted from ci_workflows.yml ... not ideal, maybe there's some way to do this by reference?
ci_cron_tests:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- name: Python 3.8 latest developer version of key dependencies
os: ubuntu-latest
python: 3.8
toxenv: py38-test-devdeps
- name: Python 3.9 with latest dev versions of key dependencies
os: ubuntu-latest
python: 3.9
toxenv: py39-test-devdeps
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up python ${{ matrix.python }} on ${{ matrix.os }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install base dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
- name: Test with tox
run: |
tox -e ${{ matrix.toxenv }}