-
Notifications
You must be signed in to change notification settings - Fork 23
47 lines (42 loc) · 1.14 KB
/
py-unittest.yaml
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
42
43
44
45
46
47
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
paths:
- '.github/**'
- 'lang/python/**'
pull_request:
branches: [main, master]
paths:
- '.github/**'
- 'lang/python/**'
name: Python package
defaults:
run:
working-directory: lang/python
jobs:
python-unittest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8' ]
steps:
- uses: actions/checkout@v2
- name: Check test data matches the global test data files
run: diff -rc tests/data ../../tests/data
shell: bash
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install jsondiff
- name: Install package
run: |
python setup.py install
- name: Unit tests
run: |
python -m unittest discover