Skip to content

Commit

Permalink
Use Python 3.10 because Torch 1.x
Browse files Browse the repository at this point in the history
torch==1.x Requires-Python >=3.7,<3.11

Signed-off-by: Arthit Suriyawongkul <[email protected]>
  • Loading branch information
bact committed Oct 27, 2024
1 parent 92f2b31 commit d6a4114
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.12'
python-version: '3.10'
- name: Install dependencies
env:
SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL: True
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.12]
python-version: [3.10]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pypi-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.12]
python-version: [3.10]

steps:
- uses: actions/checkout@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
os: [macos-latest, self-hosted]
python-version: [3.12]
python-version: [3.10]

steps:
- name: Checkout
Expand All @@ -47,8 +47,8 @@ jobs:
shell: bash -l {0}
run: |
source ~/miniconda3/etc/profile.d/conda.sh
conda create -y -n pythainlpwork312 python=3.12
conda activate pythainlpwork312
conda create -y -n pythainlpwork310 python=3.10
conda activate pythainlpwork310
conda info
conda list
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-24.04
strategy:
matrix:
python-version: [3.12]
python-version: [3.10]

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
os: [windows-latest]
python-version: [3.12]
python-version: [3.10]

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2016-2024 PyThaiNLP Project
# SPDX-License-Identifier: Apache-2.0

FROM python:3.12-slim
FROM python:3.10-slim

COPY . .

Expand Down

0 comments on commit d6a4114

Please sign in to comment.