From 129a0801907155879291f611790c552bcb921758 Mon Sep 17 00:00:00 2001 From: mc_fdc Date: Tue, 26 Dec 2023 09:56:04 +0900 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 24e1fd6..3af5143 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,11 @@ jobs: tests: name: Test voicevox-client runs-on: ubuntu-latest + services: + voicevox: + image: voicevox/voicevox_engine:cpu-ubuntu20.04-latest + ports: + - 50021:50021 steps: - uses: actions/checkout@v3 - name: Set up Python @@ -17,11 +22,6 @@ jobs: with: python-version: '3.10' - name: Install depend - run: pip3 install -U .[tests] - - name: Run voicevox-engine - run: | - docker pull voicevox/voicevox_engine:cpu-ubuntu20.04-latest - docker run -d --rm -p '127.0.0.1:50021:50021' voicevox/voicevox_engine:cpu-ubuntu20.04-latest - sleep 20 + run: python -m pip install -U .[tests] - name: Run test run: pytest