Added load_config
function
#686
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: 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 }} |