Skip to content

Commit 7f31ab1

Browse files
committed
add github action based test
1 parent de91450 commit 7f31ab1

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/run_test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test BJData
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-20.04
8+
strategy:
9+
matrix:
10+
python-version: ["2.7", "3.7", "3.8", "3.9", "3.10", "3.11"]
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install packages
19+
run: >
20+
sudo apt-get install python-numpy python3-numpy
21+
cython3 python-setuptools python3-setuptools lcov
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install coverage
26+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27+
- name: Build, run test and coverage
28+
run: |
29+
./coverage_test.sh
30+
- name: Build sdist
31+
run: |
32+
python setup.py sdist

0 commit comments

Comments
 (0)