Skip to content

Commit

Permalink
Add Python 3.12 to the CI test matrix (#1660)
Browse files Browse the repository at this point in the history
Fixes #1018.
  • Loading branch information
pbchekin authored Jul 19, 2024
1 parent fceb923 commit 648c752
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/actions/setup-ipex/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ runs:
echo "PYTHON_VERSION=$PYTHON_VERSION" >> "$GITHUB_ENV"
fi
# IPEX requires setuptools for Python 3.12
- name: Install setuptools (Python 3.12)
if: ${{ env.PYTHON_VERSION == '3.12' }}
shell: bash
run: |
pip install setuptools
- name: Load IPEX wheels from a cache
id: ipex-cache
uses: ./.github/actions/load
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ jobs:
id: matrix
run: |
if [[ -n "${{ inputs.runner_label }}" ]]; then
matrix='{"python": ["3.9", "3.10", "3.11"]}'
matrix='{"python": ["3.9", "3.10", "3.11", "3.12"]}'
else
matrix='{"python": ["3.9", "3.10", "3.11"], "driver": ["rolling", "lts"]}'
matrix='{"python": ["3.9", "3.10", "3.11", "3.12"], "driver": ["rolling", "lts"]}'
fi
echo "matrix=$matrix" | tee -a $GITHUB_OUTPUT
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-test-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ jobs:
echo "TRANSFORMERS_VERSION=$TRANSFORMERS_VERSION" | tee -a $GITHUB_ENV
- name: Install transformers
if: ${{ inputs.python_version != '3.12' }}
uses: ./.github/actions/install-dependency
with:
package: transformers
Expand All @@ -243,6 +244,7 @@ jobs:
try-tag-prefix: v

- name: Run E2E test
if: ${{ inputs.python_version != '3.12' }}
run: |
# Set WORKSPACE for inductor_xpu_test.sh to make sure it creates "inductor_log" outside of pytorch cloned directory
export WORKSPACE=$GITHUB_WORKSPACE
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
defaults:
run:
shell: bash -noprofile --norc -eo pipefail -c "source /home/runner/intel/oneapi/setvars.sh > /dev/null; source {0}"
Expand Down

0 comments on commit 648c752

Please sign in to comment.