-
Notifications
You must be signed in to change notification settings - Fork 48
92 lines (92 loc) · 2.33 KB
/
tests.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
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
85
86
87
88
89
90
91
92
name: tests
on:
pull_request:
branches:
- master
paths:
- '.docker/**'
- 'gooddata-fdw/**'
- '!gooddata-fdw/docs/**'
- 'gooddata-pandas/**'
- '!gooddata-pandas/docs/**'
- 'gooddata-sdk/**'
- '!gooddata-sdk/docs/**'
- '*.mk'
- 'Makefile'
- '!docs/**'
- 'gooddata-api-client/**'
push:
branches:
- master
paths:
- '.docker/**'
- 'gooddata-fdw/**'
- '!gooddata-fdw/docs/**'
- 'gooddata-pandas/**'
- '!gooddata-pandas/docs/**'
- 'gooddata-sdk/**'
- '!gooddata-sdk/docs/**'
- '*.mk'
- 'Makefile'
- '!docs/**'
- 'gooddata-api-client/**'
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: [py311, py310, py39, py38]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Execute tests
run: |
make test-ci
env:
TEST_ENVS: ${{ matrix.python_version }}
- name: Upload coverage to Codecov
if: ${{ matrix.python_version == 'py311' }}
uses: codecov/codecov-action@v3
with:
files: ./gooddata-sdk/coverage.xml,./gooddata-pandas/coverage.xml,./gooddata-fdw/coverage.xml
lint-and-format-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version-file: '.python-version'
cache: 'pip'
cache-dependency-path: |
lint-requirements.txt
fmt-requirements.txt
- name: Install dependencies
run: |
make dev
- name: Pep8 check
run: |
make lint
- name: Formatting check
run: |
make format
types-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version-file: '.python-version'
cache: 'pip'
cache-dependency-path: |
tox-requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tox-requirements.txt
- name: mypy check
run: |
make mypy