Skip to content

tests: mock api, run tests in CI and add test_PVECluster_find_node #34

tests: mock api, run tests in CI and add test_PVECluster_find_node

tests: mock api, run tests in CI and add test_PVECluster_find_node #34

Workflow file for this run

name: Run tests
on: [push]
jobs:
# Run tests for code formating
black:
runs-on: ubuntu-latest
concurrency: tests
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run black
run: python -m black . --check
# Run tests for lint
pylint:
runs-on: ubuntu-latest
concurrency: tests
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Run pylint
run: python -m pylint src/ tests/
# Run tests
code:
runs-on: ubuntu-latest
concurrency: tests
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Run pytest
run: python -m pytest