@@ -2,14 +2,17 @@ name: CI
2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - master
7
+ tags :
8
+ - ' *'
5
9
pull_request :
10
+ branches :
11
+ - master
6
12
schedule :
7
13
# run every Monday at 5am UTC
8
14
- cron : ' 0 5 * * 1'
9
15
10
- env :
11
- TOXARGS : ' -v'
12
-
13
16
jobs :
14
17
tests :
15
18
name : ${{ matrix.name }}
@@ -28,26 +31,31 @@ jobs:
28
31
os : ubuntu-latest
29
32
python : 3.8
30
33
toxenv : build_docs
34
+ toxargs : -v
31
35
32
36
- name : oldest dependencies
33
37
os : ubuntu-latest
34
38
python : 3.6
35
39
toxenv : py36-test-oldestdeps
40
+ toxargs : -v
36
41
37
42
- name : astropy dev with all dependencies with coverage
38
43
os : ubuntu-latest
39
44
python : 3.9
40
45
toxenv : py39-test-alldeps-devastropy-cov
46
+ toxargs : -v
41
47
42
48
- name : Python 3.7 with all optional dependencies (MacOS X)
43
49
os : macos-latest
44
50
python : 3.7
45
51
toxenv : py37-test-alldeps
52
+ toxargs : -v
46
53
47
54
- name : Python 3.8 with mandatory dependencies (Windows)
48
55
os : windows-latest
49
56
python : 3.8
50
57
toxenv : py38-test
58
+ toxargs : -v
51
59
52
60
steps :
53
61
- name : Checkout code
@@ -59,15 +67,35 @@ jobs:
59
67
with :
60
68
python-version : ${{ matrix.python }}
61
69
- name : Install Python dependencies
62
- run : python -m pip install --upgrade tox codecov
70
+ run : python -m pip install --upgrade tox
63
71
- name : Run tests
64
- run : tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }}
72
+ run : tox ${{ matrix.toxargs }} -e ${{ matrix.toxenv }} -- ${{ matrix.toxposargs }}
65
73
- name : Upload coverage to codecov
66
- if : ${{ contains(matrix.toxenv,'-cov') }}
74
+ if : contains(matrix.toxenv,'-cov')
67
75
uses : codecov/codecov-action@v1
68
76
with :
69
77
file : ./coverage.xml
70
78
79
+ # This needs to be outside of matrix because if is not supported
80
+ # for only one job in a matrix. But once that is supported, this can go
81
+ # back to the matrix above.
82
+ remote_data :
83
+ name : Python 3.8 with all dependencies with remote data
84
+ if : github.event_name == 'schedule' && github.repository == 'astropy/astroquery'
85
+ runs-on : ubuntu-latest
86
+ steps :
87
+ - name : Checkout code
88
+ uses : actions/checkout@v2
89
+ with :
90
+ fetch-depth : 0
91
+ - name : Set up Python
92
+ uses : actions/setup-python@v2
93
+ with :
94
+ python-version : ' 3.8'
95
+ - name : Install Python dependencies
96
+ run : python -m pip install --upgrade tox
97
+ - name : Run tests
98
+ run : tox -v -e py38-test-alldeps-devastropy -- --remote-data
71
99
72
100
egg_info :
73
101
name : egg_info with Python 3.7
0 commit comments