Skip to content

Upgrade doc8 to fix test failures on Python 3.12+ (#2171) #715

Upgrade doc8 to fix test failures on Python 3.12+ (#2171)

Upgrade doc8 to fix test failures on Python 3.12+ (#2171) #715

Workflow file for this run

name: Run PR Checks
on:
push:
branches:
- master
- "feature/**"
pull_request:
branches:
- master
- "feature/**"
permissions:
contents: read
jobs:
prcheck:
runs-on: ${{ matrix.os }}
env:
HYPOTHESIS_PROFILE: ci
CHALICE_TEST_EXTENDED_PACKAGING: true
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.10', 3.11, 3.12, 3.13, 3.14]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
name: Set up Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
make install-dev-deps
- name: Run PRCheck
run: make prcheck
cdktests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', 3.11, 3.12, 3.13, 3.14]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: '24'
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
name: Set up Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Install CDK
run: npm install -g aws-cdk
- name: Install dependencies
run: |
pip install -r requirements-test.txt --upgrade --upgrade-strategy eager -e .[cdkv2]
- name: Run CDK tests
run: python -m pytest tests/functional/cdk
# Chalice works on windows, but there's some differences between
# the GitHub actions windows environment and our windows dev
# laptops that are causing certain tests to fail. Once these
# are fixed we can also test on windows but for now we have to
# disable these.
# tests-windows:
# runs-on: windows-latest
# strategy:
# matrix:
# # In windows where you have to explicitly install
# # python, it's unlikely users are going to install
# # python 2.7 which is no longer supported so we're
# # only testing python3 on windows.
# python-version: [3.6, 3.7, 3.8, 3.9]
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v6
# name: Set up Python ${{ matrix.python-version }}
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# pip install -r requirements-dev.txt
# pip install -e .
# - name: Run PRCheck
# run: python -m pytest tests/unit tests/functional tests/integration