-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (38 loc) · 1.11 KB
/
Copy pathci.yml
File metadata and controls
50 lines (38 loc) · 1.11 KB
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
name: CI
on:
push:
branches: [master]
pull_request:
permissions:
contents: read
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14"
- name: Install yq
run: |
sudo wget -qO /usr/local/bin/yq \
https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
sudo chmod +x /usr/local/bin/yq
yq --version
- name: Install Python tooling
run: |
python -m pip install --upgrade pip
pip install ruff yamllint cfn-lint pytest pyyaml botocore
- name: Ruff lint
run: ruff check .
- name: Ruff format check
run: ruff format --check .
- name: yamllint
run: yamllint .
- name: cfn-lint
run: cfn-lint CFN-CR-PythonLambdaLayer.yaml CFN-CR-PythonLambdaLayer-SampleUsage.yaml
- name: Embedded code matches tracked file
run: python scripts/check_embedded_code.py
- name: pytest
run: pytest -v