Skip to content

chore(deps): bump actions/checkout from 3.5.3 to 4.0.0 #156

chore(deps): bump actions/checkout from 3.5.3 to 4.0.0

chore(deps): bump actions/checkout from 3.5.3 to 4.0.0 #156

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
flake8-lint:
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v4.0.0
- name: Set up Python environment
uses: actions/setup-python@v4.6.1
with:
python-version: "3.8"
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
exclude: "docs,kong_pdk/pdk/kong"
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v4.0.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4.6.1
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v3.3.1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt