10000 Migrate from CircleCI to GitHub Actions (#90) · DataDog/datadog-lambda-python@6a236e2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6a236e2

Browse files
authored
Migrate from CircleCI to GitHub Actions (#90)
1 parent 2f03619 commit 6a236e2

File tree

3 files changed

+62
-66
lines changed

3 files changed

+62
-66
lines changed

.circleci/config.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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/)

0 commit comments

Comments
 (0)
0