Skip to content

Commit 489a0fb

Browse files
committed
fix: enable PYTHONPATH only for example
1 parent bf8c934 commit 489a0fb

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/ci-cd.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212
types:
1313
- published
1414

15-
1615
jobs:
1716
dist:
1817
name: Build package
@@ -32,7 +31,7 @@ jobs:
3231
run: |
3332
pip install build wheel
3433
pyproject-build -ws
35-
34+
3635
- name: Check metadata
3736
run: |
3837
pip install twine
@@ -42,7 +41,7 @@ jobs:
4241
with:
4342
name: build
4443
path: dist/*
45-
44+
4645
checks:
4746
name: Check Python ${{ matrix.python-version }}
4847
needs: [dist]
@@ -66,12 +65,12 @@ jobs:
6665
path: dist
6766

6867
- name: Install build + test dependencies
69-
run: pip install pytest dist/*.whl nbconvert ipykernel
68+
run: pip install pytest dist/*.whl nbconvert ipykernel literary
7069

7170
- name: Test package
7271
env:
73-
# Set CWD (editable install would normally do this)
74-
PYTHONPATH: "${{ github.workspace }}/src:${{ github.workspace }}/examples/src"
72+
# Set PYTHONPATH to include example
73+
PYTHONPATH: "${{ github.workspace }}/examples/src"
7574
run: literary test --debug
7675
publish:
7776
name: Publish to PyPI

0 commit comments

Comments
 (0)