diff --git a/.github/workflows/dockerised-postgres.yml b/.github/workflows/dockerised-postgres.yml index 8b05cd4a..74a9d05b 100644 --- a/.github/workflows/dockerised-postgres.yml +++ b/.github/workflows/dockerised-postgres.yml @@ -49,12 +49,15 @@ jobs: steps: - uses: actions/checkout@v6 - - name: Run test noproc fixture on docker - uses: fizyk/actions-reuse/.github/actions/pipenv@v4.4.3 + - name: Set up Pipenv on python ${{ matrix.python-version }} + uses: fizyk/actions-reuse/.github/actions/pipenv-setup@v4.4.0 with: python-version: ${{ matrix.python-version }} - command: pytest -n 0 --max-worker-restart 0 -k docker --postgresql-host=localhost --postgresql-port 5433 --postgresql-password=postgres --cov-report=xml:coverage-docker.xml allow-prereleases: true + - name: Run test noproc fixture on docker + uses: fizyk/actions-reuse/.github/actions/pipenv-run@v4.2.1 + with: + command: pytest -n 0 --max-worker-restart 0 -k docker --postgresql-host=localhost --postgresql-port 5433 --postgresql-password=postgres --cov-report=xml:coverage-docker.xml - name: Upload coverage to Codecov uses: codecov/codecov-action@v5.5.2 with: diff --git a/Pipfile b/Pipfile index 799dc292..f0cf4392 100644 --- a/Pipfile +++ b/Pipfile @@ -9,6 +9,7 @@ port-for = "==1.0.0" mirakuru = "==3.0.2" packaging = "==26.0" psycopg = "==3.3.3" +pytest-postgresql = {path = ".", editable = true} [dev-packages] towncrier = "==25.8.0" diff --git a/newsfragments/+pipfile-editable.misc.rst b/newsfragments/+pipfile-editable.misc.rst new file mode 100644 index 00000000..924b7e4b --- /dev/null +++ b/newsfragments/+pipfile-editable.misc.rst @@ -0,0 +1 @@ +Add ``pytest-postgresql`` as an editable self-install in the Pipfile, removing the need for the ``editable: true`` option in CI workflow steps.