Skip to content

Commit c87303f

Browse files
committed
Simplify test runs a bit
1 parent 13ab075 commit c87303f

File tree

5 files changed

+6
-11
lines changed

5 files changed

+6
-11
lines changed

.github/workflows/dockerised-postgres.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ jobs:
4949

5050
steps:
5151
- uses: actions/checkout@v4
52-
- name: Set up Python ${{ matrix.python-version }}
53-
uses: actions/setup-python@v5
54-
with:
55-
python-version: ${{ matrix.python-version }}
5652
- name: Run test noproc fixture on docker
5753
uses: fizyk/actions-reuse/.github/actions/pipenv@v3.0.2
5854
with:

.github/workflows/oldest-postgres.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: Install oldest supported versions
5757
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v3.1.0
5858
with:
59-
command: pip install -r oldest-requirements.txt
59+
command: pip install -r oldest/requirements.txt
6060
- name: Run tests without xdist
6161
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v3.1.0
6262
with:

.github/workflows/single-postgres.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ jobs:
3535
POSTGRES: ${{ inputs.postgresql }}
3636
steps:
3737
- uses: actions/checkout@v4
38-
- name: Set up Python ${{ matrix.python-version }}
39-
uses: actions/setup-python@v5
38+
- name: Set up Pipenv on python ${{ matrix.python-version }}
39+
uses: fizyk/actions-reuse/.github/actions/pipenv-setup@v3.1.0
4040
with:
4141
python-version: ${{ matrix.python-version }}
4242
- uses: ankane/setup-postgres@v1
@@ -53,14 +53,12 @@ jobs:
5353
if: ${{ contains(inputs.python-versions, 'pypy') }}
5454
run: sudo apt install libpq5
5555
- name: Run test
56-
uses: fizyk/actions-reuse/.github/actions/pipenv@v3.0.2
56+
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v3.1.0
5757
with:
58-
python-version: ${{ matrix.python-version }}
5958
command: py.test -svv -p no:xdist --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --cov-report=xml
6059
- name: Run xdist test
61-
uses: fizyk/actions-reuse/.github/actions/pipenv@v3.0.2
60+
uses: fizyk/actions-reuse/.github/actions/pipenv-run@v3.1.0
6261
with:
63-
python-version: ${{ matrix.python-version }}
6462
command: py.test -n auto --dist loadgroup --max-worker-restart 0 --postgresql-exec="/usr/lib/postgresql/${{ inputs.postgresql }}/bin/pg_ctl" -k "not docker" --cov-report=xml:coverage-xdist.xml
6563
- uses: actions/upload-artifact@v4
6664
if: failure()

newsfragments/+bda84735.misc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Test pipeline optimisations

0 commit comments

Comments
 (0)