Skip to content

Commit 772ae36

Browse files
authored
Merge pull request #333 from ldx/vn/gha
Add GHA workflow
2 parents 897aade + f51bd14 commit 772ae36

File tree

2 files changed

+32
-16
lines changed

2 files changed

+32
-16
lines changed

.github/workflows/build.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build & Test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
build-and-test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version:
13+
- "3.7"
14+
- "3.8"
15+
- "3.9"
16+
- "3.10"
17+
- "3.11"
18+
steps:
19+
- name: Check out code
20+
uses: actions/checkout@v2
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Build package
26+
run: python setup.py build
27+
- name: Install package
28+
run: python setup.py install
29+
- name: Install coveralls
30+
run: sudo pip install coveralls
31+
- name: Run tests
32+
run: sudo PATH=$PATH coverage run setup.py test

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)