File tree Expand file tree Collapse file tree 3 files changed +62
-66
lines changed Expand file tree Collapse file tree 3 files changed +62
-66
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : build
2+
3+ on : push
4+
5+ jobs :
6+ lint :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - name : Checkout
11+ uses : actions/checkout@v2
12+
13+ - name : Set up Python
14+ uses : actions/setup-python@v2
15+ with :
16+ python-version : 3.7
17+
18+ - name : Install dependencies
19+ run : |
20+ pip install virtualenv
21+ virtualenv venv
22+ source venv/bin/activate
23+ pip install .[dev]
24+
25+ - name : Check formatting
26+ run : |
27+ source venv/bin/activate
28+ ./scripts/check_format.sh
29+
30+ - name : Lint
31+ run : |
32+ source venv/bin/activate
33+ flake8 datadog_lambda/
34+
35+ test :
36+ runs-on : ubuntu-latest
37+ strategy :
38+ max-parallel : 4
39+ matrix :
40+ python-version : [2.7, 3.6, 3.7, 3.8]
41+
42+ steps :
43+ - name : Checkout
44+ uses : actions/checkout@v2
45+
46+ - name : Set up Python ${{ matrix.python-version }}
47+ uses : actions/setup-python@v2
48+ with :
49+ python-version : ${{ matrix.python-version }}
50+
51+ - name : Install dependencies
52+ run : |
53+ pip install virtualenv
54+ virtualenv venv
55+ source venv/bin/activate
56+ pip install .[dev]
57+
58+ - name : Run tests
59+ run : |
60+ source venv/bin/activate
61+ nose2 -v
Original file line number Diff line number Diff line change 11# datadog-lambda-python
22
3- [ ![ CircleCI ] ( https://img.shields.io/circleci/build/github/ DataDog/datadog-lambda-python )] ( https://circleci.com/gh/DataDog/datadog-lambda-python )
3+ ![ build ] ( https://github.com/ DataDog/datadog-lambda-python/workflows/build/badge.svg )
44[ ![ PyPI] ( https://img.shields.io/pypi/v/datadog-lambda )] ( https://pypi.org/project/datadog-lambda/ )
55![ PyPI - Python Version] ( https://img.shields.io/pypi/pyversions/datadog-lambda )
66[ ![ Slack] ( https://img.shields.io/badge/slack-%23serverless-blueviolet?logo=slack )] ( https://datadoghq.slack.com/channels/serverless/ )
You can’t perform that action at this time.
0 commit comments