-
Notifications
You must be signed in to change notification settings - Fork 20
43 lines (43 loc) · 1.33 KB
/
main.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
name: Main
on: [push]
jobs:
build:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10"]
steps:
- name: Setup python ${{ matrix.python-version }} Environment
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Check out repository
uses: actions/checkout@v2
- name: Cache pip
uses: actions/cache@v2
with:
# This path is specific to Ubuntu
path: ~/.cache/pip
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-${{ matrix.python-version }}-pip-${{ hashFiles('requirements/base.txt', 'requirements/spark.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python-version }}-pip-
${{ runner.os }}-
- name: Install All Dependencies
run: |
make pydep
- name: Run CI
run: |
make ci
- if: matrix.python-version == 3.9
name: Docker build
run: |
make docker
- if: matrix.python-version == 3.9
name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
flags: unittests