-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (28 loc) · 995 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Test
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.7]
name: Python ${{ matrix.python }}
# We want to run on external PRs, but not on our own internal PRs as they'll be run by the push to the branch.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- run: pip install -U pip setuptools
- run: pip install -U Cython numpy
- name: Install coverage dependencies
run: pip install pytest-cov
- name: Build
run: python setup.py build_ext --inplace
- name: Install pybbhash
run: pip install -e .
- run: pytest --cov=.
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1