From f9f1c0c64ee9d28ee4257887895ad6af20670ad4 Mon Sep 17 00:00:00 2001 From: mh-northlander Date: Fri, 10 Jan 2025 15:42:49 +0900 Subject: [PATCH] fix installation order --- .github/workflows/python-upload-test.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/python-upload-test.yml b/.github/workflows/python-upload-test.yml index 58e65d27..e1074b06 100644 --- a/.github/workflows/python-upload-test.yml +++ b/.github/workflows/python-upload-test.yml @@ -112,23 +112,22 @@ jobs: run: python -m pip install --upgrade pip - name: Show compatible tags run: python -m pip debug --verbose - - name: Install dependencies (test) - run: python -m pip install sudachidict_core - - name: Install dependencies (test pretokenizer) - # tokenizers for py3.13t is not provided yet - if: ${{ matrix.target != '3.13t' }} - run: python -m pip install tokenizers - - name: Install dependencies (build sdist) - if: ${{ matrix.target == 'sdist' }} - run: python -m pip install -U setuptools setuptools-rust - name: Install our module from TestPyPi if: ${{ matrix.target != 'sdist' }} run: python -m pip -vvvv install --pre -U -i https://test.pypi.org/simple/ SudachiPy - - name: Install our module from sdist + - name: Install our module from TestPyPi (sdist) if: ${{ matrix.target == 'sdist' }} run: | + python -m pip install -U setuptools setuptools-rust python -m pip -vvvv install --pre -U -i https://test.pypi.org/simple/ --no-build-isolation --no-binary SudachiPy SudachiPy - + - name: Install dependencies (dictionary) + # this must be after sudachipy install + run: python -m pip install sudachidict_core + - name: Install dependencies (test pretokenizer) + # tokenizers for py3.13t is not provided yet + if: ${{ matrix.target != '3.13t' }} + run: python -m pip install tokenizers + - name: Run test if: ${{ matrix.target != '3.13t' }} working-directory: ./python