Skip to content

[fix] support refreshing exec api credentials (#258) #499

[fix] support refreshing exec api credentials (#258)

[fix] support refreshing exec api credentials (#258) #499

Workflow file for this run

name: Tests
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install -r test-requirements.txt
- name: (Debug environment)
run: |
printenv
python -V
pip freeze
- name: Run unit tests
run: |
# splitted into 2 steps because of problem with event-loop in aiohttp
py.test -vvv -s --ignore=kubernetes_asyncio/e2e_test --ignore=kubernetes_asyncio/test --cov-report=xml --cov=kubernetes_asyncio
py.test -vvv -s --cov-report=xml --cov=kubernetes_asyncio2 kubernetes_asyncio/test --cov-append
- name: Run e2e tests
run: |
scripts/kube-init.sh py.test -vvv -s kubernetes_asyncio/e2e_test
- name: Lint with flake8 and isort (only on the latest version of Python)
if: matrix.python-version == 3.11
run: |
flake8
isort -c --diff .
- name: Send coverage report
uses: codecov/codecov-action@v3
if: matrix.python-version == 3.11
with:
token: ${{ secrets.CODECOV_TOKEN }}