Skip to content

Commit 2b756d9

Browse files
committed
DO NOT MERGE: disable most of CI for faster debugging
1 parent f163057 commit 2b756d9

2 files changed

Lines changed: 4 additions & 338 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 283 deletions
Original file line numberDiff line numberDiff line change
@@ -30,290 +30,8 @@ jobs:
3030
run: build_tools/fail_on_missing_init_files.sh
3131
shell: bash
3232

33-
run-notebook-examples:
34-
needs: code-quality
35-
runs-on: ubuntu-latest
36-
steps:
37-
- uses: actions/checkout@v4
38-
- name: Set up Python
39-
uses: actions/setup-python@v5
40-
with:
41-
python-version: 3.9
42-
- name: Install dependencies
43-
run: |
44-
python -m pip install --upgrade pip
45-
python -m pip install .[all_extras,binder,dev,mlflow]
46-
- name: Run example notebooks
47-
run: build_tools/run_examples.sh
48-
shell: bash
49-
50-
run-blogpost-examples:
51-
needs: code-quality
52-
runs-on: ubuntu-latest
53-
steps:
54-
- uses: actions/checkout@v4
55-
- name: Set up Python
56-
uses: actions/setup-python@v5
57-
with:
58-
python-version: 3.9
59-
- name: Install dependencies
60-
run: |
61-
python -m pip install --upgrade pip
62-
python -m pip install .[all_extras,binder,dev,mlflow]
63-
- name: Run example notebooks
64-
run: build_tools/run_blogposts.sh
65-
shell: bash
66-
67-
test-nodevdeps:
68-
needs: code-quality
69-
runs-on: ubuntu-latest
70-
steps:
71-
- uses: actions/checkout@v4
72-
- name: Set up Python
73-
uses: actions/setup-python@v5
74-
with:
75-
python-version: 3.9
76-
- name: Display Python version
77-
run: python -c "import sys; print(sys.version)"
78-
79-
- name: Install sktime and dependencies
80-
run: |
81-
python -m pip install .
82-
83-
- name: Run pytest-free tests
84-
run: |
85-
python sktime/_nopytest_tests.py
86-
87-
test-nosoftdeps:
88-
needs: code-quality
89-
runs-on: ubuntu-latest
90-
steps:
91-
- uses: actions/checkout@v4
92-
- name: Set up Python
93-
uses: actions/setup-python@v5
94-
with:
95-
python-version: 3.9
96-
- name: Display Python version
97-
run: python -c "import sys; print(sys.version)"
98-
99-
- name: Install sktime and dependencies
100-
run: |
101-
python -m pip install .[dev]
102-
103-
- name: Show dependencies
104-
run: python -m pip list
105-
106-
- name: Run tests
107-
run: make PYTESTOPTIONS="--cov --cov-report=xml --timeout=600" test_softdeps
108-
109-
test-nosoftdeps-full:
110-
needs: test-nosoftdeps
111-
runs-on: ubuntu-latest
112-
steps:
113-
- uses: actions/checkout@v4
114-
115-
- run: git remote set-branches origin 'main'
116-
117-
- run: git fetch --depth 1
118-
119-
- name: Set up Python
120-
uses: actions/setup-python@v5
121-
with:
122-
python-version: 3.9
123-
124-
- name: Display Python version
125-
run: python -c "import sys; print(sys.version)"
126-
127-
- name: Install sktime and dependencies
128-
run: |
129-
python -m pip install .[dev]
130-
131-
- name: Show dependencies
132-
run: python -m pip list
133-
134-
- name: Run tests
135-
run: make PYTESTOPTIONS="--cov --cov-report=xml --timeout=600" test_softdeps_full
136-
137-
test-mlflow:
138-
needs: test-nosoftdeps
139-
runs-on: ubuntu-latest
140-
steps:
141-
- uses: actions/checkout@v4
142-
- name: Set up Python
143-
uses: actions/setup-python@v5
144-
with:
145-
python-version: 3.9
146-
- name: Display Python version
147-
run: python -c "import sys; print(sys.version)"
148-
149-
- name: Install sktime and dependencies
150-
run: |
151-
python -m pip install .[all_extras,dev,mlflow_tests] --no-cache-dir
152-
153-
- name: Show dependencies
154-
run: python -m pip list
155-
156-
- name: Run tests
157-
run: make PYTESTOPTIONS="--cov --cov-report=xml --timeout=600" test_mlflow
158-
159-
test-cython-estimators:
160-
needs: test-nosoftdeps
161-
runs-on: macos-latest
162-
steps:
163-
- uses: actions/checkout@v4
164-
165-
- run: git remote set-branches origin 'main'
166-
167-
- run: git fetch --depth 1
168-
169-
- name: Set up Python
170-
uses: actions/setup-python@v5
171-
with:
172-
python-version: 3.9
173-
- name: Display Python version
174-
run: python -c "import sys; print(sys.version)"
175-
176-
- name: Install OS packages
177-
run: brew install libomp
178-
179-
- name: Install sktime and dependencies
180-
run: |
181-
python -m pip install .[dev,cython_extras] --no-cache-dir
182-
183-
- name: Show dependencies
184-
run: python -m pip list
185-
186-
- name: Run tests
187-
run: make PYTESTOPTIONS="--cov --cov-report=xml --only_cython_estimators=True --matrixdesign=False --timeout=600" test_check_suite
188-
189-
- name: Publish code coverage
190-
uses: codecov/codecov-action@v4
191-
with:
192-
token: ${{ secrets.CODECOV_TOKEN }}
193-
194-
detect:
195-
needs: test-nosoftdeps
196-
name: detect changes
197-
runs-on: ubuntu-latest
198-
permissions:
199-
pull-requests: read
200-
outputs:
201-
datasets: ${{ steps.filter.outputs.datasets }}
202-
pyproject: ${{ steps.filter.outputs.pyproject }}
203-
steps:
204-
- uses: actions/checkout@v4
205-
- uses: dorny/paths-filter@v3
206-
id: filter
207-
with:
208-
filters: |
209-
datasets:
210-
- sktime/base/**
211-
- sktime/datasets/**
212-
pyproject:
213-
- pyproject.toml
214-
215-
test-base:
216-
needs: test-nosoftdeps
217-
name: base
218-
uses: ./.github/workflows/test_base.yml
219-
secrets: inherit
220-
22133
test-module:
222-
needs: test-nosoftdeps
34+
needs: code-quality
22335
name: module
22436
uses: ./.github/workflows/test_module.yml
22537
secrets: inherit
226-
227-
test-other:
228-
needs: test-nosoftdeps
229-
name: other
230-
uses: ./.github/workflows/test_other.yml
231-
secrets: inherit
232-
233-
test-datasets:
234-
needs: detect
235-
name: datasets
236-
if: ${{ needs.detect.outputs.datasets == 'true' }}
237-
uses: ./.github/workflows/test_datasets.yml
238-
secrets: inherit
239-
240-
test-full:
241-
needs: test-nosoftdeps
242-
strategy:
243-
fail-fast: false # to not fail all combinations if just one fail
244-
matrix:
245-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
246-
os: [ubuntu-latest, macos-latest, windows-latest]
247-
runs-on: ${{ matrix.os }}
248-
steps:
249-
- uses: actions/checkout@v4
250-
251-
- run: git remote set-branches origin 'main'
252-
253-
- run: git fetch --depth 1
254-
255-
- name: Set up Python
256-
uses: actions/setup-python@v5
257-
with:
258-
python-version: ${{ matrix.python-version }}
259-
260-
- name: Display Python version
261-
run: python -c "import sys; print(sys.version)"
262-
263-
- name: Install sktime and dependencies
264-
run: |
265-
python -m pip install .[all_extras_pandas2,dev,dl] --no-cache-dir
266-
267-
- name: Show dependencies
268-
run: python -m pip list
269-
270-
- name: Show available branches
271-
run: git branch -a
272-
273-
- name: Run tests
274-
run: make test_without_datasets
275-
276-
- name: Publish code coverage
277-
uses: codecov/codecov-action@v4
278-
with:
279-
token: ${{ secrets.CODECOV_TOKEN }}
280-
281-
test-unix-pandas1:
282-
needs: test-nosoftdeps
283-
strategy:
284-
fail-fast: false
285-
matrix:
286-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
287-
runs-on: ubuntu-latest
288-
steps:
289-
- uses: actions/checkout@v4
290-
291-
- run: git remote set-branches origin 'main'
292-
293-
- run: git fetch --depth 1
294-
295-
- name: Set up Python
296-
uses: actions/setup-python@v5
297-
with:
298-
python-version: ${{ matrix.python-version }}
299-
300-
- name: Display Python version
301-
run: python -c "import sys; print(sys.version)"
302-
303-
- name: Install sktime and dependencies
304-
run: |
305-
python -m pip install .[all_extras,dev,pandas1] --no-cache-dir
306-
307-
- name: Show dependencies
308-
run: python -m pip list
309-
310-
- name: Show available branches
311-
run: git branch -a
312-
313-
- name: Run tests
314-
run: make test_without_datasets
315-
316-
- name: Publish code coverage
317-
uses: codecov/codecov-action@v4
318-
with:
319-
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/test_module.yml

Lines changed: 3 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2,72 +2,20 @@ name: test module
22
on:
33
workflow_call:
44
jobs:
5-
detect:
6-
name: detect
7-
runs-on: ubuntu-latest
8-
permissions:
9-
pull-requests: read
10-
outputs:
11-
module_changes: ${{ steps.filter.outputs.changes }}
12-
steps:
13-
- uses: actions/checkout@v4
14-
- uses: dorny/paths-filter@v3
15-
id: filter
16-
with:
17-
filters: |
18-
alignment:
19-
- pyproject.toml
20-
- sktime/base/**
21-
- sktime/alignment/**
22-
annotation:
23-
- pyproject.toml
24-
- sktime/base/**
25-
- sktime/annotation/**
26-
classification:
27-
- pyproject.toml
28-
- sktime/base/**
29-
- sktime/classification/**
30-
clustering:
31-
- pyproject.toml
32-
- sktime/base/**
33-
- sktime/clustering/**
34-
forecasting:
35-
- pyproject.toml
36-
- sktime/base/**
37-
- sktime/forecasting/**
38-
networks:
39-
- pyproject.toml
40-
- sktime/base/**
41-
- sktime/networks/**
42-
param_est:
43-
- pyproject.toml
44-
- sktime/base/**
45-
- sktime/param_est/**
46-
regression:
47-
- pyproject.toml
48-
- sktime/base/**
49-
- sktime/regression/**
50-
transformations:
51-
- pyproject.toml
52-
- sktime/base/**
53-
- sktime/transformations/**
545
test:
55-
needs: detect
56-
name:
576
strategy:
587
fail-fast: false
598
matrix:
609
python-version:
6110
- "3.8"
6211
- "3.9"
6312
- "3.10"
64-
- "3.11"
65-
- "3.12"
6613
operating-system:
6714
- macos-latest
6815
- ubuntu-latest
6916
- windows-latest
70-
sktime-component: ${{ fromJSON(needs.detect.outputs.module_changes) }}
17+
sktime-component:
18+
- forecasting
7119
runs-on: ${{ matrix.operating-system }}
7220
steps:
7321
- name: checkout pull request branch
@@ -78,7 +26,7 @@ jobs:
7826
with:
7927
sktime-component-identifier: ${{ matrix.sktime-component }}
8028
python-version-identifier: ${{ matrix.python-version }}
81-
sub-sample-estimators: "True"
29+
sub-sample-estimators: "False"
8230
test-affected-estimators: "True"
8331

8432
- name: upload coverage

0 commit comments

Comments
 (0)