Skip to content

Commit 8cd7770

Browse files
authored
Simple GithubAction for CI testing
This is probably broken atm (adding here so it will trigger)
1 parent 5d4b0cc commit 8cd7770

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: python-suitesparse-graphblas
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
15+
python-version: [3.7, 3.8, 3.9]
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
- name: Conda
20+
uses: conda-incubator/setup-miniconda@v2
21+
with:
22+
auto-update-conda: true
23+
python-version: ${{ matrix.python-version }}
24+
channels: conda-forge
25+
- name: Build
26+
run: |
27+
conda info
28+
conda list
29+
conda install -c conda-forge cffi cython numpy graphblas pytest coverage black flake8 # TODO: environment.yml
30+
python setup.py build_ext --inplace
31+
python setup.py develop
32+
- name: Test
33+
env:
34+
CYTHON_COVERAGE: true
35+
run: |
36+
coverage run --branch -m pytest
37+
- name: Lint
38+
run: |
39+
black *py suitesparse_graphblas --check --diff
40+
flake8 *py suitesparse_graphblas

0 commit comments

Comments
 (0)