File tree Expand file tree Collapse file tree 2 files changed +58
-7
lines changed Expand file tree Collapse file tree 2 files changed +58
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : " Forecast Operator Tests"
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ pull_request :
6
+ branches : [ "main", "operators/**" ]
7
+
8
+ # Cancel in progress workflows on pull_requests.
9
+ # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
10
+ concurrency :
11
+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12
+ cancel-in-progress : true
13
+
14
+ permissions :
15
+ contents : read
16
+
17
+ # hack for https://github.com/actions/cache/issues/810#issuecomment-1222550359
18
+ env :
19
+ SEGMENT_DOWNLOAD_TIMEOUT_MINS : 5
20
+
21
+ jobs :
22
+ test :
23
+ name : python ${{ matrix.python-version }}
24
+ runs-on : ubuntu-latest
25
+ timeout-minutes : 180
26
+
27
+ strategy :
28
+ fail-fast : false
29
+ matrix :
30
+ python-version : ["3.8", "3.9", "3.10"]
31
+
32
+ steps :
33
+ - uses : actions/checkout@v4
34
+
35
+ - uses : actions/setup-python@v5
36
+ with :
37
+ python-version : ${{ matrix.python-version }}
38
+ cache : " pip"
39
+ cache-dependency-path : |
40
+ pyproject.toml
41
+ "**requirements.txt"
42
+ "test-requirements-operators.txt"
43
+
44
+ - uses : ./.github/workflows/set-dummy-conf
45
+ name : " Test config setup"
46
+
47
+ - name : " Run Forecast Tests"
48
+ timeout-minutes : 180
49
+ shell : bash
50
+ run : |
51
+ set -x # print commands that are executed
52
+ $CONDA/bin/conda init
53
+ source /home/runner/.bashrc
54
+ pip install -r test-requirements-operators.txt
55
+ python -m pytest -v -p no:warnings --durations=5 tests/operators/forecast
Original file line number Diff line number Diff line change @@ -3,11 +3,7 @@ name: "Operators Tests"
3
3
on :
4
4
workflow_dispatch :
5
5
pull_request :
6
- paths :
7
- - " ads/opctl/operator/**"
8
- - " **requirements.txt"
9
- - " .github/workflows/run-operators*.yml"
10
- - " test-requirements-operators.txt"
6
+ branches : [ "main", "operators/**" ]
11
7
12
8
# Cancel in progress workflows on pull_requests.
13
9
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
31
27
strategy :
32
28
fail-fast : false
33
29
matrix :
34
- python-version : ["3.8"]
30
+ python-version : ["3.8", "3.9", "3.10" ]
35
31
36
32
steps :
37
33
- uses : actions/checkout@v4
56
52
$CONDA/bin/conda init
57
53
source /home/runner/.bashrc
58
54
pip install -r test-requirements-operators.txt
59
- python -m pytest -v -p no:warnings --durations=5 tests/operators
55
+ python -m pytest -v -p no:warnings --durations=5 tests/operators --ignore=tests/operators/forecast
You can’t perform that action at this time.
0 commit comments