Skip to content

Commit b41928e

Browse files
committed
Start adding CI
1 parent baf24bb commit b41928e

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/test.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.x' # Or specify a particular version like '3.9'
19+
20+
- name: Install dependencies and pytest
21+
run: |
22+
# This is a placeholder for dependency installation.
23+
# You might need to install specific libraries or tools here
24+
# depending on your project's requirements.
25+
# For example, if you need build-essential and cmake:
26+
sudo apt-get update
27+
sudo apt-get install -y cmake build-essential libhdf5-dev libgsl-dev libfftw3-dev swig libnfft3-dev libtiff-dev libpng-dev
28+
pip install pytest
29+
30+
- name: Configure CMake
31+
run: |
32+
ls
33+
mkdir build
34+
cd build
35+
cmake ..
36+
make
37+
38+
- name: Build
39+
run: make
40+
41+
- name: Run pytest
42+
run: cd .. && pytest

0 commit comments

Comments
 (0)