-
Notifications
You must be signed in to change notification settings - Fork 123
53 lines (43 loc) · 1.32 KB
/
onpush.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
name: build
on:
pull_request:
types: [ opened, synchronize ]
push:
branches: [ main ]
jobs:
test-pipeline:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
python-version: [ '3.9' ]
os: [ ubuntu-latest, windows-latest ]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip' # caching pip dependencies
cache-dependency-path: setup.py
- name: Install pip
run: python -m pip install --upgrade pip
- name: Install package and dependencies
run: pip install -U -e ".[dev]"
- name: Lint
run: |
prospector --profile prospector.yaml
black --check .
- name: Run unit tests
run: |
git config --global init.defaultBranch main # to avoid verbose deprecation messages in CI pipeline
pytest tests/unit --cov dbx -n auto
- name: Run integrity tests
run: |
python -m dbx --help
python -c "import dbx; print(dbx.__version__)"
- name: Publish test coverage
if: startsWith(matrix.os,'ubuntu')
uses: codecov/codecov-action@v1