Skip to content

Commit

Permalink
CI: Use stable python 3.12 (#910)
Browse files Browse the repository at this point in the history
* CI: Use stable python 3.12

* Require future version of torch for macos
  • Loading branch information
adrianeboyd authored Nov 6, 2023
1 parent a180b5d commit 05515c5
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python_version: ["3.11", "3.12.0-rc.2"]
python_version: ["3.12"]
include:
- os: windows-2019
python_version: "3.6"
Expand All @@ -58,6 +58,8 @@ jobs:
python_version: "3.9"
- os: macos-latest
python_version: "3.10"
- os: ubuntu-latest
python_version: "3.11"

runs-on: ${{ matrix.os }}
env:
Expand Down Expand Up @@ -114,7 +116,7 @@ jobs:
run: |
pip install ipykernel pydot graphviz
python -m ipykernel install --name thinc-notebook-tests --user
if: matrix.python_version != '3.12.0-rc.2'
if: matrix.python_version != '3.12'

- name: Run tests without extras
run: |
Expand All @@ -135,7 +137,11 @@ jobs:
run: |
pip install "protobuf~=3.20.0" "tensorflow~=2.5.0"
pip install "mxnet; sys_platform != 'win32' and python_version < '3.12'"
pip install "torch!=1.13.0" --extra-index-url https://download.pytorch.org/whl/cpu
pip install "torch!=1.13.0; sys_platform!='darwin'" --extra-index-url https://download.pytorch.org/whl/cpu
# there is a bug related to MPS devices in github macos runners that
# will be fixed in torch v2.1.1
# https://github.com/pytorch/pytorch/pull/111576
pip install "torch>=2.1.1; sys_platform=='darwin'" --extra-index-url https://download.pytorch.org/whl/cpu
pip install "numpy~=1.23.0; python_version=='3.10' and sys_platform=='win32'"
pip install "numpy<1.24.0"
pip install -r requirements.txt
Expand Down

0 comments on commit 05515c5

Please sign in to comment.