-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (33 loc) · 951 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
name: build
on:
pull_request:
types: [opened, synchronize]
push:
branches: [master]
jobs:
tests:
env:
PYTHON: '3.9'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: 3.9
- name: Set Spark env
run: |
export SPARK_LOCAL_IP=127.0.0.1
export SPARK_SUBMIT_OPTS="--illegal-access=permit -Dio.netty.tryReflectionSetAccessible=true"
- name: Generate coverage report
working-directory: ./
run: |
pip install -r requirements.txt
pip install coverage
coverage run -m unittest discover -s tests -p 'tests_*.py'
coverage xml
- name: Publish test coverage
uses: codecov/codecov-action@v1