@@ -3,11 +3,7 @@ name: "[Py3.8][COV REPORT] tests/unitary/**"
33on :
44 workflow_dispatch :
55 pull_request :
6- paths :
7- - " ads/**"
8- - pyproject.toml
9- - " **requirements.txt"
10- - " .github/workflows/run-unittests*.yml"
6+ branches : [ "main" ]
117
128# Cancel in progress workflows on pull_requests.
139# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
@@ -38,20 +34,23 @@ jobs:
3834 test-path : " tests/unitary"
3935 # `model` tests running in "slow_tests",
4036 # `feature_store` tests has its own test suite
37+ # `forecast` tests has its own test suite
38+ # 'hpo' tests hangs if run together with all unitary tests. Tests running in separate command before running all unitary
4139 ignore-path : |
4240 --ignore tests/unitary/with_extras/model \
4341 --ignore tests/unitary/with_extras/feature_store \
42+ --ignore tests/unitary/with_extras/operator/forecast \
4443 --ignore tests/unitary/with_extras/hpo
4544 - name : " slow_tests"
4645 test-path : " tests/unitary/with_extras/model"
4746
4847 steps :
49- - uses : actions/checkout@v3
48+ - uses : actions/checkout@v4
5049
5150 - uses : ./.github/workflows/create-more-space
5251 name : " Create more disk space"
5352
54- - uses : actions/setup-python@v4
53+ - uses : actions/setup-python@v5
5554 with :
5655 python-version : " 3.8"
5756 cache : " pip"
@@ -64,14 +63,16 @@ jobs:
6463
6564 - uses : ./.github/workflows/test-env-setup
6665 name : " Test env setup"
67- timeout-minutes : 20
66+ timeout-minutes : 30
6867
69- # Installing forecast deps for python3.8 test setup only, it will not work with python3.9/3.10, because
70- # automlx do not support py3.9 and some versions of py3.10. This step omitted in -py39-py30.yml workflow
71- - name : " Install Forecasting dependencies"
68+ # Installing pii deps for python3.8 test setup only, it will not work with python3.9/3.10, because
69+ # 'datapane' library conflicts with pandas>2.2.0, which used in py3.9/3.10 setup
70+ - name : " Install PII dependencies"
7271 run : |
73- pip install -e ".[forecast]"
74-
72+ pip install -e ".[pii]"
73+ - name : " Install featurestore marketplace dependencies"
74+ run : |
75+ pip install -e ".[feature-store-marketplace]"
7576 - name : " Run unitary tests folder with maximum ADS dependencies"
7677 timeout-minutes : 40
7778 shell : bash
@@ -101,7 +102,7 @@ jobs:
101102 ${{ matrix.test-path }} ${{ matrix.ignore-path }}
102103
103104 - name : " Save coverage files"
104- uses : actions/upload-artifact@v3
105+ uses : actions/upload-artifact@v4
105106 with :
106107 name : cov-reports-${{ matrix.name }}
107108 path : |
@@ -114,17 +115,17 @@ jobs:
114115 runs-on : ubuntu-latest
115116 continue-on-error : true
116117 needs : test
117- if : ${{ success() }} && && github.event_name == 'pull_request'
118+ if : ${{ success() }} && github.event_name == 'pull_request'
118119 env :
119120 COMPARE_BRANCH : main
120121
121122 steps :
122123 - name : " Checkout current branch"
123- uses : actions/checkout@v3
124+ uses : actions/checkout@v4
124125 with :
125126 fetch-depth : 0
126127 - name : " Download coverage files"
127- uses : actions/download-artifact@v3
128+ uses : actions/download-artifact@v4
128129 - name : " Calculate overall coverage"
129130 run : |
130131 set -x # print commands that are executed
@@ -153,7 +154,6 @@ jobs:
153154 fi
154155
155156 - name : " Calculate coverage diff"
156- if : always()
157157 run : |
158158 set -x # print commands that are executed
159159
@@ -183,8 +183,8 @@ jobs:
183183 fi
184184
185185 - name : " Add comment with cov diff to PR"
186- uses : actions/github-script@v6
187- if : always()
186+ uses : actions/github-script@v7
187+ if : github.event_name == 'pull_request'
188188 with :
189189 github-token : ${{ github.token }}
190190 script : |
@@ -200,7 +200,7 @@ jobs:
200200 --compare-branch=origin/${{ env.COMPARE_BRANCH }} \
201201 --html-report=cov-diff.html
202202 - name : " Save coverage difference report"
203- uses : actions/upload-artifact@v3
203+ uses : actions/upload-artifact@v4
204204 with :
205205 name : cov-html-reports
206206 path : |
0 commit comments