-
Notifications
You must be signed in to change notification settings - Fork 10
84 lines (75 loc) · 2.38 KB
/
build.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: build and test
on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.9]
os: [ubuntu-latest] #ubuntu-latest [macos-latest, ] #
env:
PYTHON_VERSION: ${{ matrix.python-version }}
SPARK_VERSION: ${{ matrix.spark-version }}
PANDAS_VERSION: ${{ matrix.pandas-version }}
PYARROW_VERSION: ${{ matrix.pyarrow-version }}
NUMPY_VERSION: ${{ matrix.numpy-version }}
DEFAULT_INDEX_TYPE: ${{ matrix.default-index-type }}
KOALAS_TESTING: 1
SPARK_LOCAL_IP: 127.0.0.1
# DISPLAY=0.0 does not work in Github Actions with Python 3.5. Here we work around with xvfb-run
PYTHON_EXECUTABLE: xvfb-run python
GITHUB_OAUTH_KEY: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install libomp
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
brew install libomp
fi
shell: bash
- name: install dependencies
run: |
pip install --upgrade pip
pip install certifi
pip install tox tox-wheel tox-gh-actions
pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org -r requirements_tox.txt
python setup_build.py build_ext --inplace
python setup_build.py install
- name: tests
run: |
coverage run --omit gators/*/test*.py -m pytest gators && coverage report && coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
# run: |
# - name: Test with tox
# run: tox
# with:
# token: {{ secrets.CODECOV_TOKEN }}
# - run: coverage run -m pytest gators && coverage report && coverage xml
# token: 'ce68bafd-388e-42e8-abf8-b5ea3b328037'
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install tox tox-wheel tox-gh-actions
# pip install numpy<1.20.0
# pip install Cython
# - name: Test with tox
# run: tox