@@ -94,10 +94,10 @@ jobs:
94
94
pip install numpy
95
95
fi
96
96
97
- - name : run-unit-tests
98
- shell : bash
99
- run : |
100
- pytest -sv --cov-append --cov=. --cov-report xml tests/unit
97
+ # - name: run-unit-tests
98
+ # shell: bash
99
+ # run: |
100
+ # pytest -sv --cov-append --cov=. --cov-report xml tests/unit
101
101
- name : Check for Secret availability
102
102
id : secret-check
103
103
if : ${{ contains(fromJSON('["3.9"]'), matrix.python) }}
@@ -192,7 +192,7 @@ jobs:
192
192
fi
193
193
194
194
# use loadscope to avoid issues running tests concurrently that share scoped fixtures
195
- pytest -sv --reruns 3 --cov-append --cov=. --cov-report xml tests/integration -n auto --ignore=tests/integration/synapseclient/test_command_line_client.py --dist loadscope
195
+ # pytest -sv --reruns 3 --cov-append --cov=. --cov-report xml tests/integration -n auto --ignore=tests/integration/synapseclient/test_command_line_client.py --dist loadscope
196
196
197
197
# Execute the CLI tests in a non-dist way because they were causing some test instability when being run concurrently
198
198
# pytest -sv --reruns 3 --cov-append --cov=. --cov-report xml tests/integration/synapseclient/test_command_line_client.py
@@ -211,35 +211,35 @@ jobs:
211
211
name : coverage-report
212
212
path : coverage.xml
213
213
214
- sonarcloud :
215
- needs : [test]
216
- if : ${{ always() && !cancelled()}}
217
- name : SonarCloud
218
- runs-on : ubuntu-20.04
219
- steps :
220
- - uses : actions/checkout@v3
221
- with :
222
- fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
223
- - name : Check coverage report existence
224
- id : check_coverage_report
225
- uses : andstor/file-existence-action@v3
226
- with :
227
- files : " coverage.xml"
228
- - name : Download coverage report
229
- uses : actions/download-artifact@v2
230
- if : steps.check_coverage_report.outputs.files_exists == 'true'
231
- with :
232
- name : coverage-report
233
- # This is a workaround described in https://community.sonarsource.com/t/sonar-on-github-actions-with-python-coverage-source-issue/36057
234
- - name : Override Coverage Source Path for Sonar
235
- if : steps.check_coverage_report.outputs.files_exists == 'true'
236
- run : sed -i "s/<source>\/home\/runner\/work\/synapsePythonClient<\/source>/<source>\/github\/workspace<\/source>/g" coverage.xml
237
- - name : SonarCloud Scan
238
- uses : SonarSource/sonarcloud-github-action@master
239
- if : ${{ always() }}
240
- env :
241
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
242
- SONAR_TOKEN : ${{ secrets.SONAR_TOKEN }}
214
+ # sonarcloud:
215
+ # needs: [test]
216
+ # if: ${{ always() && !cancelled()}}
217
+ # name: SonarCloud
218
+ # runs-on: ubuntu-20.04
219
+ # steps:
220
+ # - uses: actions/checkout@v3
221
+ # with:
222
+ # fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
223
+ # - name: Check coverage report existence
224
+ # id: check_coverage_report
225
+ # uses: andstor/file-existence-action@v3
226
+ # with:
227
+ # files: "coverage.xml"
228
+ # - name: Download coverage report
229
+ # uses: actions/download-artifact@v2
230
+ # if: steps.check_coverage_report.outputs.files_exists == 'true'
231
+ # with:
232
+ # name: coverage-report
233
+ # # This is a workaround described in https://community.sonarsource.com/t/sonar-on-github-actions-with-python-coverage-source-issue/36057
234
+ # - name: Override Coverage Source Path for Sonar
235
+ # if: steps.check_coverage_report.outputs.files_exists == 'true'
236
+ # run: sed -i "s/<source>\/home\/runner\/work\/synapsePythonClient<\/source>/<source>\/github\/workspace<\/source>/g" coverage.xml
237
+ # - name: SonarCloud Scan
238
+ # uses: SonarSource/sonarcloud-github-action@master
239
+ # if: ${{ always() }}
240
+ # env:
241
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
242
+ # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
243
243
244
244
# on a GitHub release, build the pip package and upload it as a GitHub release asset
245
245
package :
@@ -368,13 +368,13 @@ jobs:
368
368
id-token : write
369
369
steps :
370
370
- name : download-sdist
371
- uses : actions/download-artifact@v4
371
+ uses : actions/download-artifact@v2
372
372
with :
373
373
name : ${{ needs.package.outputs.sdist-package-name }}
374
374
path : dist
375
375
376
376
- name : download-bdist
377
- uses : actions/download-artifact@v4
377
+ uses : actions/download-artifact@v2
378
378
with :
379
379
name : ${{ needs.package.outputs.bdist-package-name }}
380
380
path : dist
0 commit comments