Skip to content

Commit 5d4c5ec

Browse files
author
Dilawar Singh
committed
Some more fixes to github workflows.
1 parent 6dd377c commit 5d4c5ec

File tree

2 files changed

+33
-11
lines changed

2 files changed

+33
-11
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build PyMOOSE using setup.py
1+
name: C/C++ CI
22

33
on: [push]
44

@@ -12,13 +12,10 @@ jobs:
1212
- name: Install dependencies
1313
run: |
1414
sudo apt update
15-
sudo apt install libgsl-dev g++ cmake python3-pip python3-numpy python3-matplotlib
16-
sudo apt install python-dev python-numpy python-matplotlib python-pip
17-
- name: build
18-
run: |
19-
python setup.py install test
20-
python3 setup.py install test
21-
- name: Post Install
22-
run: |
23-
python3 -c "import moose;moose.test()" || echo "Failed python3 test"
24-
python2 -c "import moose;moose.test()" || echo "Failed python2 tests"
15+
sudo apt install libgsl-dev g++ cmake python3-dev python3-numpy
16+
- name: configure
17+
run: mkdir -p build && cd build && cmake ..
18+
- name: make
19+
run: cd build && make
20+
- name: ctest --output-on-failure
21+
run: cd build && make check

.github/workflows/pymoose.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Python package
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v1
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Install dependencies
20+
run: |
21+
sudo apt install cmake libgsl-dev g++ git
22+
python -m pip install --upgrade pip --user
23+
- name: Build
24+
run: |
25+
python setup.py install test

0 commit comments

Comments
 (0)