Skip to content

Commit

Permalink
CI: Add python 3.12.0rc2 (#905)
Browse files Browse the repository at this point in the history
* CI: Add python 3.12.0rc2

* Skip notebook test for python 3.12

* Skip mxnet for python 3.12
  • Loading branch information
adrianeboyd committed Sep 22, 2023
1 parent 9d3ec3b commit ea451e4
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 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"]
python_version: ["3.11", "3.12.0-rc.2"]
include:
- os: windows-2019
python_version: "3.6"
Expand Down Expand Up @@ -106,11 +106,18 @@ jobs:
- name: Test import
run: python -c "import thinc"

- name: Run tests without extras
- name: Install test requirements
run: |
pip install -r requirements.txt
- name: Install notebook test requirements
run: |
pip install ipykernel pydot graphviz
python -m ipykernel install --name thinc-notebook-tests --user
if: matrix.python_version != '3.12.0-rc.2'

- name: Run tests without extras
run: |
python -m pytest --pyargs thinc -Werror --cov=thinc --cov-report=term
# Notes on numpy requirements hacks:
Expand All @@ -127,7 +134,7 @@ jobs:
- name: Install extras for testing
run: |
pip install "protobuf~=3.20.0" "tensorflow~=2.5.0"
pip install "mxnet; sys_platform != 'win32'"
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 "numpy~=1.23.0; python_version=='3.10' and sys_platform=='win32'"
pip install "numpy<1.24.0"
Expand Down

0 comments on commit ea451e4

Please sign in to comment.