-
Notifications
You must be signed in to change notification settings - Fork 49
46 lines (43 loc) · 1.7 KB
/
pr-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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: CloudFormation Python Plugin CI
on: [push, pull_request]
jobs:
os_build:
env:
AWS_DEFAULT_REGION: us-east-1
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: pip
- name: Install dependencies
run: |
pip install --upgrade mypy 'attrs==19.2.0' -r https://raw.githubusercontent.com/aws-cloudformation/aws-cloudformation-rpdk/master/requirements.txt
- name: Install both plugin and support lib
run: |
pip install . src/
- uses: actions/cache@v3
with:
path: ~/.cache/pre-commit/
key: ${{ matrix.os }}-${{ env.pythonLocation }}${{ hashFiles('.pre-commit-config.yaml') }}
- name: pre-commit checks
run: |
pre-commit run --all-files
- name: End to End Resource Packaging Test Python 3.8
run: ./e2e-test.sh python38
- name: End to End Resource Packaging Test Python 3.9
run: ./e2e-test.sh python39
- name: End to End Resource Packaging Test Python 3.10
run: ./e2e-test.sh python310
- name: End to End Resource Packaging Test Python 3.11
run: ./e2e-test.sh python311
- name: End to End Resource Packaging Test Python 3.12
run: ./e2e-test.sh python312