forked from diodonfrost/terraform-aws-lambda-nuke
-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (60 loc) · 1.51 KB
/
CI.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
54
55
56
57
58
59
60
61
62
63
name: CI
on:
push:
pull_request:
schedule:
- cron: '0 18 * * sun'
jobs:
tflint:
name: Terraform ${{ matrix.terraform_version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
terraform_version:
- latest
- 0.14.0
- 0.13.0
steps:
- uses: actions/checkout@master
- name: Terraform validate
run: tests/sanity/terraform_tests.sh
env:
terraform_version: "${{ matrix.terraform_version }}"
pythontest:
name: ${{ matrix.config.toxenv }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- toxenv: py35
python-version: 3.5
- toxenv: py36
python-version: 3.6
- toxenv: py37
python-version: 3.7
- toxenv: py38
python-version: 3.8
- toxenv: flake8
python-version: 3.7
- toxenv: pylint
python-version: 3.7
- toxenv: black
python-version: 3.7
- toxenv: mypy
python-version: 3.7
- toxenv: pytest
python-version: 3.7
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.config.python-version }}
- name: Install dependencies
run: python -m pip install tox
- name: Python test
run: tox
env:
TOXENV: "${{ matrix.config.toxenv }}"