Skip to content

Commit 77e7317

Browse files
committed
Add packaging to github workflow
1 parent 93cd1eb commit 77e7317

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22
on: [push, pull_request]
33

44
jobs:
5-
test-new:
5+
test:
66

77
runs-on: ubuntu-latest
88

@@ -15,10 +15,16 @@ jobs:
1515
python-version: '3.x'
1616

1717
- name: Install requirements (PIP)
18-
run: pip3 install pytest sphinx numpy
18+
run: pip3 install pytest sphinx numpy build
1919

20-
- name: Setup up PYTHONPATH
21-
run: echo "PYTHONPATH=${PWD}/src" >> $GITHUB_ENV
20+
- name: Setup up root directory
21+
run: echo "PACKAGE_ROOT=${PWD}/src" >> $GITHUB_ENV
22+
23+
- name: Build and install package
24+
run: |
25+
python -m build
26+
pip install dist/hsd_python*.whl
27+
python3 -c 'import hsd; print(hsd.__version__)'
2228
2329
- name: Run test pytest
2430
run: python3 -m pytest

0 commit comments

Comments
 (0)