Add Support for k8s v1.25+ #211
Workflow file for this run
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: python-checks | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
# Jobs | |
jobs: | |
# Job to lint code | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- 3.8 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
timeout-minutes: 5 | |
run: | | |
python -m pip install --upgrade pip | |
- name: Lint with Black | |
timeout-minutes: 5 | |
# Pinning Black at 19.x for now. Have seen flakey results with 20.x | |
run: | | |
pip install black==22.3.0 | |
make ci-lint-python | |
# Job to execute unit tests | |
unit-test: | |
needs: lint | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- 3.8 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
timeout-minutes: 5 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Dependencies | |
timeout-minutes: 5 | |
run: | | |
python -m pip install --upgrade pip | |
pip install pipenv | |
export PIPENV_PIPFILE="app/imageswap/Pipfile" | |
pipenv install --system --deploy | |
export PIPENV_PIPFILE="app/imageswap-init/Pipfile" | |
pipenv install --system --deploy | |
- name: Execute Unit Tests | |
timeout-minutes: 5 | |
run: | | |
pip install coverage | |
make test-python |