Skip to content

Commit b9297c5

Browse files
committed
add github action for test
1 parent 739ca91 commit b9297c5

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflow/run_test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Test JData
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["2.7", "3.6", "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 dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install numpy backports.lzma
22+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
23+
- name: Build sdist
24+
run: |
25+
python setup.py sdist
26+
- name: Basic test
27+
run: |
28+
python -m unittest discover -v test

0 commit comments

Comments
 (0)