Skip to content

Commit 8d09615

Browse files
authored
Merge pull request #1763 from Shaikh-Ubaid/fix_ci
CI: Install and use lpython as a package
2 parents bf59fb4 + 9cc155c commit 8d09615

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,9 @@ jobs:
225225
- name: PIP install required packages
226226
shell: bash -l {0}
227227
run: |
228-
python -m pip install lpynn numpy
228+
# Package lpynn has lpython_emulation as dependency
229+
# Hence, it should by default install lpython_emulation
230+
python -m pip install lpython_emulation==0.0.1.8 lpynn==0.0.1.3 numpy==1.24.3
229231
230232
- name: PIP show installed packages
231233
shell: bash -l {0}
@@ -235,7 +237,6 @@ jobs:
235237
- name: Test PIP Packages with Python
236238
shell: bash -l {0}
237239
run: |
238-
export PYTHONPATH=./src/runtime/lpython
239240
python integration_tests/test_pip_import_01.py
240241
241242
- name: Test PIP Packages with LPython

integration_tests/test_pip_import_01.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from lpynn.perceptron import init_perceptron, print_perceptron, normalize_input_vectors, Perceptron, train_dataset
1+
from lpynn.perceptron import init_perceptron, print_perceptron, Perceptron, train_dataset
2+
from lpynn.utils import normalize_input_vectors
23
from lpython import i32, f64
34

45
def main0():

0 commit comments

Comments
 (0)