-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
149 lines (145 loc) · 4.37 KB
/
test_all.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
name: test all
on:
schedule:
- cron: 0 0 * * 0
workflow_dispatch:
jobs:
code_quality:
name: code-quality
runs-on: ubuntu-latest
steps:
- name: repository checkout step
uses: actions/checkout@v4
- name: python environment step
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: check missing __init__ files
run: build_tools/fail_on_missing_init_files.sh
shell: bash
test_base:
needs: code_quality
name: base
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
operating-system:
- macos-13
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.operating-system }}
steps:
- name: checkout pull request branch
uses: actions/checkout@v4
- name: run tests on python ${{ matrix.python-version }}
uses: ./.github/actions/test-base
with:
python-version-identifier: ${{ matrix.python-version }}
sub-sample-estimators: "False"
test-affected-estimators: "False"
- name: upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.operating-system }},${{ matrix.python-version }},base,complete
test_module:
needs: code_quality
name: module
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
operating-system:
- macos-13
- ubuntu-latest
- windows-latest
sktime-component:
- alignment
- annotation
- classification
- clustering
- forecasting
- networks
- param_est
- regression
- transformations
runs-on: ${{ matrix.operating-system }}
steps:
- name: checkout pull request branch
uses: actions/checkout@v4
- name: run tests for component ${{ matrix.sktime-component }} on python ${{ matrix.python-version }}
uses: ./.github/actions/test-component
with:
sktime-component-identifier: ${{ matrix.sktime-component }}
python-version-identifier: ${{ matrix.python-version }}
sub-sample-estimators: "False"
test-affected-estimators: "False"
- name: upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.operating-system }},${{ matrix.python-version }},${{ matrix.sktime-component }},complete
test_other:
needs: code_quality
name: other
strategy:
fail-fast: false
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
operating-system:
- macos-13
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.operating-system }}
steps:
- name: checkout pull request branch
uses: actions/checkout@v4
- name: update local git tracking reference
run: git remote set-branches origin main
- name: update local shallow clone
run: git fetch --depth 1
- name: create python virtual environment
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install core, test and all soft dependencies
run: python3 -m pip install .[all_extras_pandas2,tests]
- name: run unit tests
run: >-
python3
-m pytest
sktime
--ignore sktime/base
--ignore sktime/datasets
--ignore sktime/alignment
--ignore sktime/annotation
--ignore sktime/classification
--ignore sktime/clustering
--ignore sktime/forecasting
--ignore sktime/networks
--ignore sktime/param_est
--ignore sktime/regression
--ignore sktime/transformations
--matrixdesign False
--only_changed_modules False
- name: upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: ${{ matrix.operating-system }},${{ matrix.python-version }},components_without_extras,complete