Skip to content

Added load_config function #687

Added load_config function

Added load_config function #687

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", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
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@v4
if: matrix.python-version == 3.11
with:
token: ${{ secrets.CODECOV_TOKEN }}