Skip to content

Commit 7be23ed

Browse files
author
Dilawar Singh
committed
Using setup.py file to build and install pymoose.
1 parent 0c3f743 commit 7be23ed

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,20 @@ on: [push]
44

55
jobs:
66
build:
7-
87
runs-on: ubuntu-latest
9-
108
steps:
119
- uses: actions/checkout@v2
1210
- name: Install dependencies
1311
run: |
1412
sudo apt update
15-
sudo apt install libgsl-dev g++ cmake python3-dev python3-numpy
13+
sudo apt install libgsl-dev g++ cmake python3-pip python3-numpy python3-matplotlib
14+
sudo apt install python-dev python-numpy python-matplotlib python-pip
1615
- name: configure
17-
run: mkdir -p build && cd build && cmake ..
1816
- name: make
19-
run: cd build && make
20-
- name: Test
21-
run: cd build && ctest --output-on-failure
17+
run: |
18+
python setup.py install test
19+
python3 setup.py install test
20+
- name: Post Install
21+
run: |
22+
python3 -c "import moose;moose.test()" || echo "Failed python3 tests"
23+
python2 -c "import moose;moose.test()" || echo "Failed python2 tests"

0 commit comments

Comments
 (0)