Skip to content

Commit

Permalink
Fix builds and update to python 3.9 as default in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft committed Jan 6, 2025
1 parent a53379d commit b592e39
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/CI-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,8 @@ 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"

Expand Down Expand Up @@ -69,7 +61,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 @@ -88,7 +81,7 @@ jobs:
# 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 +95,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 +110,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 b592e39

Please sign in to comment.