forked from aws/aws-parallelcluster-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (81 loc) · 2.16 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: ParallelCluster Cookbook CI
on: [push, pull_request]
jobs:
depcheck:
runs-on: ubuntu-latest
name: DepCheck
steps:
- uses: actions/checkout@v2
- name: Dependency Check
uses: dependency-check/Dependency-Check_Action@main
with:
path: '.'
format: 'HTML'
project: 'aws-parallelcluster-cookbook'
- name: Upload Test results
uses: actions/upload-artifact@master
with:
name: Depcheck report
path: ${{github.workspace}}/reports
ruby:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
name:
- Setup Ruby
include:
- name: Setup Ruby
steps:
- uses: actions/checkout@v2
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: 2.7
- name: Install dependencies
run: bundle install --with style
- name: Run Rubocop
run: rubocop
- name: Run Foodcritic
# FC071 is a check for a LICENSE file.
# It doesn't like that ours is named LICENSE.txt.
run: foodcritic -t '~FC071' .
python:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
name:
- Python 3.6 Tests
- Python 3.7 Tests
- Python 3.8 Tests
- Python 3.9 Tests
- Code Checks
include:
- name: Python 3.6 Tests
python: 3.6
toxenv: py36
- name: Python 3.7 Tests
python: 3.7
toxenv: py37
- name: Python 3.8 Tests
python: 3.8
toxenv: py38
- name: Python 3.9 Tests
python: 3.9
toxenv: py39
- name: Code Checks
python: 3.9
toxenv: code-linters
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install Tox and any other packages
run: pip install tox
- name: Run Tox
run: tox -e ${{ matrix.toxenv }}