From 8408da564835604bc934eaf614752b81d7c3323b Mon Sep 17 00:00:00 2001 From: Shroominic Date: Sun, 8 Oct 2023 10:55:47 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8fix=20install=20deps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/code-check.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/code-check.yml b/.github/workflows/code-check.yml index e55f7e6..ee92fca 100644 --- a/.github/workflows/code-check.yml +++ b/.github/workflows/code-check.yml @@ -13,13 +13,11 @@ jobs: - uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install pre-commit - run: pip install pre-commit poetry pytest typing-extensions + - name: Install poetry and dependencies + run: curl -sSL https://install.python-poetry.org | python3 - && poetry install - name: Run pre-commit - run: pre-commit run --all-files - - name: Install dependencies - run: poetry config virtualenvs.create false && poetry install --extras "all" + run: poetry run pre-commit run --all-files - name: Run tests env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} - run: pytest + run: poetry run pytest