forked from databricks-academy/dbacademy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
32 lines (29 loc) · 704 Bytes
/
buildspec.yml
File metadata and controls
32 lines (29 loc) · 704 Bytes
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
version: 0.2
phases:
install:
runtime-versions:
python: 3.9
pre_build:
commands:
- python -m venv test_env
- . test_env/bin/activate
- pip -q install --upgrade pip
- pip -q install -r requirements.txt --use-pep517
build:
commands:
- python setup.py bdist_wheel
- python -m pytest --junit-xml=reports/unit-tests.xml --cov=src/ --cov-report html:reports/coverage
post_build:
commands:
- echo Build completed on `date`
reports:
unit-tests:
file-format: JUNITXML
files:
- reports/unit-tests.xml
artifacts:
discard-paths: no
files:
- reports/unit-tests.xml
- reports/coverage/*.*
- dist/dbacademy-*.whl