Skip to content

Commit faadeba

Browse files
Update upload-artifact to v4 and fix release script in ml-wrappers (#182)
1 parent fe2bd3c commit faadeba

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

.github/workflows/CI-python-AutoML.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
run: |
6767
pytest ./tests/automl -s -v --durations=10 --cov='ml_wrappers' --cov-report=xml --cov-report=html
6868
- name: Upload code coverage results
69-
uses: actions/upload-artifact@v3
69+
uses: actions/upload-artifact@v4
7070
with:
7171
name: ${{ matrix.packageDirectory }}-code-coverage-results
7272
path: htmlcov

.github/workflows/CI-python-minimal.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ jobs:
4242
run: |
4343
pytest ./tests/minimal -s -v --durations=10 --cov='ml_wrappers' --cov-report=xml --cov-report=html
4444
- name: Upload code coverage results
45-
uses: actions/upload-artifact@v3
45+
uses: actions/upload-artifact@v4
4646
with:
47-
name: ${{ matrix.packageDirectory }}-code-coverage-results
47+
name: ${{ matrix.packageDirectory }}-${{ matrix.pythonVersion }}-${{ matrix.operatingSystem }}-code-coverage-results
4848
path: htmlcov
4949
# Use always() to always run this step to publish test results when there are test failures
5050
if: ${{ always() }}

.github/workflows/CI-python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ jobs:
9898
pytest ./tests/main -s -v --durations=10 --cov='ml_wrappers' --cov-report=xml --cov-report=html
9999
100100
- name: Upload code coverage results
101-
uses: actions/upload-artifact@v3
101+
uses: actions/upload-artifact@v4
102102
with:
103-
name: ${{ matrix.packageDirectory }}-code-coverage-results
103+
name: ${{ matrix.packageDirectory }}-${{ matrix.openaiVersion }}-${{ matrix.pythonVersion }}-${{ matrix.operatingSystem }}-code-coverage-results
104104
path: htmlcov
105105
# Use always() to always run this step to publish test results when there are test failures
106106
if: ${{ always() }}

.github/workflows/release-ml-wrappers.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,11 @@ jobs:
2727
auto-update-conda: true
2828
python-version: 3.9
2929

30-
- if: ${{ matrix.operatingSystem != 'macos-latest' }}
31-
name: Install pytorch on non-MacOS
30+
- name: Install pytorch on non-MacOS
3231
shell: bash -l {0}
3332
run: |
3433
conda install --yes --quiet pytorch torchvision captum cpuonly -c pytorch -c conda-forge --strict-channel-priority
3534
36-
- if: ${{ matrix.operatingSystem == 'macos-latest' }}
37-
name: Install Anaconda packages on MacOS, which should not include cpuonly according to official docs
38-
shell: bash -l {0}
39-
run: |
40-
conda install --yes --quiet pytorch torchvision captum -c pytorch
41-
4235
- name: update and upgrade pip, setuptools, wheel, and twine
4336
shell: bash -l {0}
4437
run: |
@@ -80,9 +73,9 @@ jobs:
8073
run: pytest ./tests/main
8174

8275
- name: Upload a ml-wrappers build result
83-
uses: actions/upload-artifact@v2
76+
uses: actions/upload-artifact@v4
8477
with:
85-
name: ml_wrappers
78+
name: ml_wrappers-${{ github.event.inputs.releaseType }}
8679
path: python/dist/
8780

8881
# publish to PyPI

0 commit comments

Comments
 (0)