From 16072afc6c77b4ca638567be1e7d150d76e42458 Mon Sep 17 00:00:00 2001 From: baseplate-admin <61817579+baseplate-admin@users.noreply.github.com> Date: Thu, 22 Feb 2024 21:43:40 +0600 Subject: [PATCH] add --- .github/workflows/test.yml | 13 +++++++++---- pyproject.toml | 1 - 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9062f23..925591d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,11 +32,16 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Depedencies + - uses: actions/checkout@v4 + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true + - name: Install python dependencies run: | - python -m pip install wheel - python -m pip install pytest pytest-django pytest-cov psycopg2-binary - python setup.py develop + poetry install --sync --no-interaction --no-root --with test + poetry run pip install -e . - name: Run tests run: >- diff --git a/pyproject.toml b/pyproject.toml index 542359a..ff0541f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,7 +30,6 @@ python = ">=3.10" django = ">=5.0.2" psycopg = ">=3.1.18" - [tool.poetry.group.test.dependencies] pytest = "^8.0.1" pytest-django = "^4.8.0"