From 20bd2a380d061db899362f8329da3a9d07760c8f Mon Sep 17 00:00:00 2001 From: xtaodada Date: Mon, 12 Sep 2022 17:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E4=BF=AE=E5=A4=8DCI=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f864291..6561029 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,11 +1,10 @@ -name: Test +name: test on: push: branches: - main paths: - - '.github/workflows/**' - 'tests/**' pull_request: types: [ opened, synchronize ] @@ -21,11 +20,14 @@ jobs: uses: actions/setup-python@v3 with: python-version: "3.10" - - name: Install dependencies + - name: Install poetry run: | pip install --upgrade poetry + poetry config virtualenvs.create false + - name: Install dependencies + run: | poetry install poetry install --extras test - name: Test with pytest run: | - pytest \ No newline at end of file + python -m pytest \ No newline at end of file