From b592e3911a78356697c29cd571befcc68b113950 Mon Sep 17 00:00:00 2001 From: Ilya Matiach Date: Mon, 6 Jan 2025 16:59:25 -0500 Subject: [PATCH] Fix builds and update to python 3.9 as default in tests --- .github/workflows/CI-python.yml | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/.github/workflows/CI-python.yml b/.github/workflows/CI-python.yml index 290990da09..6eae202195 100644 --- a/.github/workflows/CI-python.yml +++ b/.github/workflows/CI-python.yml @@ -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" @@ -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 @@ -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 @@ -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 @@ -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