From 5229b85889bd83ac12fe607bbd27abb4411fbb43 Mon Sep 17 00:00:00 2001 From: Paul Stretenowich Date: Mon, 11 Nov 2024 14:09:18 -0500 Subject: [PATCH] Making available pytest and flake8 for Action only --- .github/workflows/PyTest.yml | 7 +++++-- pyproject.toml | 3 +-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/PyTest.yml b/.github/workflows/PyTest.yml index 18e0f3f..7c2fcbd 100644 --- a/.github/workflows/PyTest.yml +++ b/.github/workflows/PyTest.yml @@ -21,9 +21,12 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install project + - name: Install pip, pytest and flake8 run: | - pdm install --prod --no-lock --no-editable + python -m ensurepip --upgrade + pip3 install --upgrade pip + pip install flake8 pytest + - name: Run Tests run: | pdm run -v pytest tests diff --git a/pyproject.toml b/pyproject.toml index 304afad..7aa7479 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,8 +35,7 @@ dependencies = [ "alembic-utils", "alembic-postgresql-enum", "gunicorn>=20.1.0", - "sqlalchemy-json>=0.5.0", - "pytest>=8.0.0", + "sqlalchemy-json>=0.5.0" ] [project.urls]