Skip to content

Commit

Permalink
Fix builds and update to python 3.9 as default in tests (#2593)
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft authored Jan 7, 2025
1 parent a53379d commit dfa37be
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 34 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/CI-e2e-notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
matrix:
# TODO: add macos
operatingSystem: [ubuntu-latest, windows-latest]
pythonVersion: [3.8, 3.9, "3.10"]
pythonVersion: [3.9, "3.10"]
flights: ["", "dataBalanceExperience"]
notebookGroup: ["nb_group_1", "nb_group_2", "nb_group_3"]
exclude:
Expand Down Expand Up @@ -109,7 +109,8 @@ jobs:
cat installed-requirements-dev.txt
working-directory: raiwidgets

- name: Upload requirements
- if: ${{ (matrix.operatingSystem == 'windows-latest') && (matrix.pythonVersion == '3.9') && (matrix.flights == '') && (matrix.notebookGroup == 'nb_group_1') }}
name: Upload requirements
uses: actions/upload-artifact@v4
with:
name: requirements-dev.txt
Expand Down Expand Up @@ -142,5 +143,5 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: raiwidgets-e2e-screen-shot
name: raiwidgets-ci-e2e-notebooks-screen-shot-${{ matrix.notebookGroup }}-${{ matrix.flights }}-${{ matrix.operatingSystem }}-${{ matrix.pythonVersion }}
path: ./dist/cypress
7 changes: 4 additions & 3 deletions .github/workflows/CI-notebook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
operatingSystem: [ubuntu-latest, windows-latest]
pythonVersion: [3.7, 3.8, 3.9, "3.10"]
pythonVersion: [3.9, "3.10"]

runs-on: ${{ matrix.operatingSystem }}

Expand Down Expand Up @@ -74,7 +74,8 @@ jobs:
cat installed-requirements-dev.txt
working-directory: raiwidgets

- name: Upload requirements
- if: ${{ (matrix.operatingSystem == 'windows-latest') && (matrix.pythonVersion == '3.9') }}
name: Upload requirements
uses: actions/upload-artifact@v4
with:
name: requirements-dev.txt
Expand All @@ -95,5 +96,5 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: raiwidgets-e2e-screen-shot
name: raiwidgets-ci-notebook-screen-shot-${{ matrix.operatingSystem }}-${{ matrix.pythonVersion }}
path: dist/cypress
26 changes: 11 additions & 15 deletions .github/workflows/CI-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,13 @@ jobs:
packageDirectory:
["responsibleai", "erroranalysis", "raiutils", "rai_test_utils"]
operatingSystem: [ubuntu-latest, macos-latest, windows-latest]
pythonVersion: ["3.7", "3.8", "3.9", "3.10", "3.11"]
pythonVersion: ["3.9", "3.10", "3.11"]
exclude:
- operatingSystem: macos-latest
pythonVersion: "3.7"
- operatingSystem: ubuntu-latest
pythonVersion: "3.7"
- operatingSystem: windows-latest
pythonVersion: "3.7"
- operatingSystem: macos-latest
pythonVersion: "3.8"
- packageDirectory: "responsibleai"
pythonVersion: "3.11"
- packageDirectory: "responsibleai"
operatingSystem: "macos-latest"
pythonVersion: "3.9"

runs-on: ${{ matrix.operatingSystem }}

Expand Down Expand Up @@ -69,7 +64,8 @@ jobs:
cat installed-requirements-dev.txt
working-directory: raiwidgets

- name: Upload requirements
- if: ${{ (matrix.operatingSystem == 'windows-latest') && (matrix.pythonVersion == '3.9') && (matrix.packageDirectory == 'responsibleai') }}
name: Upload requirements
uses: actions/upload-artifact@v4
with:
name: requirements-dev.txt
Expand All @@ -83,12 +79,12 @@ jobs:
- name: Upload code coverage results
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.packageDirectory }}-code-coverage-results
path: ${{ matrix.packageDirectory }}/htmlcov
name: ${{ matrix.packageDirectory }}-${{ matrix.pythonVersion}}-code-coverage-results
path: ${{ matrix.packageDirectory }}-${{ matrix.pythonVersion}}/htmlcov
# Use always() to always run this step to publish test results when there are test failures
if: ${{ always() }}

- if: ${{ (matrix.operatingSystem == 'windows-latest') && (matrix.pythonVersion == '3.8') }}
- if: ${{ (matrix.operatingSystem == 'windows-latest') && (matrix.pythonVersion == '3.9') }}
name: Upload to codecov
id: codecovupload1
uses: codecov/codecov-action@v3
Expand All @@ -102,7 +98,7 @@ jobs:
name: codecov-umbrella
verbose: true

- if: ${{ (steps.codecovupload1.outcome == 'failure') && (matrix.pythonVersion == '3.8') && (matrix.operatingSystem == 'windows-latest') }}
- if: ${{ (steps.codecovupload1.outcome == 'failure') && (matrix.pythonVersion == '3.9') && (matrix.operatingSystem == 'windows-latest') }}
name: Retry upload to codecov
id: codecovupload2
uses: codecov/codecov-action@v3
Expand All @@ -117,7 +113,7 @@ jobs:
verbose: true

- name: Set codecov status
if: ${{ (matrix.pythonVersion == '3.8') && (matrix.operatingSystem == 'windows-latest') }}
if: ${{ (matrix.pythonVersion == '3.9') && (matrix.operatingSystem == 'windows-latest') }}
shell: bash
run: |
if ${{ (steps.codecovupload1.outcome == 'success') || (steps.codecovupload2.outcome == 'success') }} ; then
Expand Down
21 changes: 8 additions & 13 deletions .github/workflows/CI-raiwidgets-pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,11 @@ jobs:
matrix:
packageDirectory: ["raiwidgets"]
operatingSystem: [ubuntu-latest, macos-latest, windows-latest]
pythonVersion: [3.7, 3.8, 3.9, "3.10"]
pythonVersion: [3.9, "3.10"]
exclude:
- packageDirectory: "raiwidgets"
operatingSystem: macos-latest
pythonVersion: 3.9
- packageDirectory: "raiwidgets"
operatingSystem: windows-latest
pythonVersion: 3.8
- packageDirectory: "raiwidgets"
operatingSystem: macos-latest
pythonVersion: 3.7

runs-on: ${{ matrix.operatingSystem }}

Expand Down Expand Up @@ -102,7 +96,8 @@ jobs:
cat installed-requirements-dev.txt
working-directory: ${{ matrix.packageDirectory }}

- name: Upload requirements
- if: ${{ (matrix.operatingSystem == 'windows-latest') && (matrix.pythonVersion == '3.9') }}
name: Upload requirements
uses: actions/upload-artifact@v4
with:
name: requirements-dev.txt
Expand All @@ -119,10 +114,10 @@ jobs:
name: Upload code coverage results
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.packageDirectory }}-code-coverage-results
path: ${{ matrix.packageDirectory }}/htmlcov
name: ${{ matrix.packageDirectory }}-${{ matrix.pythonVersion}}-code-coverage-results
path: ${{ matrix.packageDirectory }}-${{ matrix.pythonVersion}}/htmlcov

- if: ${{ (matrix.operatingSystem == 'windows-latest') && (matrix.pythonVersion == '3.8') }}
- if: ${{ (matrix.operatingSystem == 'windows-latest') && (matrix.pythonVersion == '3.9') }}
name: Upload to codecov
id: codecovupload1
uses: codecov/codecov-action@v3
Expand All @@ -136,7 +131,7 @@ jobs:
name: codecov-umbrella
verbose: true

- if: ${{ (steps.codecovupload1.outcome == 'failure') && (matrix.pythonVersion == '3.8') && (matrix.operatingSystem == 'windows-latest') }}
- if: ${{ (steps.codecovupload1.outcome == 'failure') && (matrix.pythonVersion == '3.9') && (matrix.operatingSystem == 'windows-latest') }}
name: Retry upload to codecov
id: codecovupload2
uses: codecov/codecov-action@v3
Expand All @@ -151,7 +146,7 @@ jobs:
verbose: true

- name: Set codecov status
if: ${{ (matrix.pythonVersion == '3.8') && (matrix.operatingSystem == 'windows-latest') }}
if: ${{ (matrix.pythonVersion == '3.9') && (matrix.operatingSystem == 'windows-latest') }}
shell: bash
run: |
if ${{ (steps.codecovupload1.outcome == 'success') || (steps.codecovupload2.outcome == 'success') }} ; then
Expand Down

0 comments on commit dfa37be

Please sign in to comment.