Merge branch 'dependabot/pip/pip-gte-9-and-lt-24.1' #622
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run PR Checks | |
on: | |
push: | |
branches: | |
- master | |
- "feature/**" | |
pull_request: | |
branches: | |
- master | |
- "feature/**" | |
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.8, 3.9, '3.10', 3.11, 3.12] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
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.8, 3.9, '3.10', 3.11, 3.12] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- uses: actions/setup-python@v2 | |
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@v2 | |
# 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 |