-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildspec.yml
40 lines (33 loc) · 822 Bytes
/
buildspec.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
version: 0.2
phases:
install:
runtime-versions:
python: 3.11
commands:
# Install python with yum
- yum install python3.11 -y
- yum install python3-virtualenv -y
pre_build:
commands:
# Create virtual environment
- python3 -m virtualenv venv
# Activate virtualenv
- . venv/bin/activate
- pip install --upgrade pip
# Install packages in requirements file
- pip install -r requirements.txt
# Run tests
- python3 -m pytest
build:
commands:
- echo Build started on `date`
# run basic build
- python3 setup.py sdist bdist_wheel
post_build:
commands:
- echo Build completed on `date`
artifacts:
files:
- "**/*"
# base-directory: ${OUTPUT_DIR}
name: test