Skip to content

Commit d03dd4e

Browse files
committed
add a pip install and lint to the PR build to validate install time deps without the lock
1 parent 8769b1e commit d03dd4e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/PR.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,24 @@ jobs:
5353
with:
5454
python-version: ${{ matrix.python-version }}
5555

56+
- name: Create a venv
57+
run: python -m venv ~/venv/.cache
58+
- name: Install the package
59+
run: ~/venv/.cache/bin/pip install .
60+
- name: Check that it runs
61+
run: ~/venv/.cache/bin/nps lint
62+
5663
- uses: Gr1N/setup-poetry@v8
5764
with:
5865
poetry-version: ${{ env.POETRY_VERSION }}
5966
- uses: actions/cache@v2
6067
with:
6168
path: ~/.cache/pypoetry/virtualenvs
6269
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
70+
- uses: actions/cache@v2
71+
with:
72+
path: ~/venv/.cache
73+
key: ${{ runner.os }}-venv-${{ hashFiles('poetry.lock') }}
6374
- name: Install the Package
6475
run: poetry install
6576
- name: Run tests

0 commit comments

Comments
 (0)