Skip to content

refine(v3.7.x): refine bootctrl.common CMDHelperFuncs #1211

refine(v3.7.x): refine bootctrl.common CMDHelperFuncs

refine(v3.7.x): refine bootctrl.common CMDHelperFuncs #1211

Workflow file for this run

name: test CI
on: [pull_request]
jobs:
pytest_with_coverage:
runs-on: ubuntu-20.04
timeout-minutes: 20
steps:
- name: Checkout commit
uses: actions/checkout@v3
- name: Build ota-test_base docker image
run: |
docker-compose -f docker/docker-compose_tests.yml build
- name: Execute pytest with coverage trace under ota-test_base container
run: |
set -o pipefail
docker-compose -f docker/docker-compose_tests.yml up --no-log-prefix --abort-on-container-exit | tee pytest-coverage.txt
# export the coverage report to the comment!
- name: Add coverage report to PR comment
continue-on-error: true
uses: MishaKav/[email protected]
python_lint_check:
runs-on: ubuntu-20.04
timeout-minutes: 3
strategy:
matrix:
python-version: [3.8]
steps:
- name: Checkout commit
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install test dependencies
run: |
python -m pip install -q --upgrade pip
python -m pip install -q -r tests/requirements.txt
- name: Lint codes without modification
run: |
$pythonLocation/bin/python -m black ./otaclient --check
- name: Lint codes for syntax check
run: |
$pythonLocation/bin/python -m flake8 ./otaclient
markdown_lint_check:
runs-on: ubuntu-20.04
timeout-minutes: 3
steps:
- name: Checkout commit
uses: actions/checkout@v3
- name: markdownlint-cli
uses: nosborn/[email protected]
with:
files: .
config_file: .markdownlint.yaml
ignore_files: .markdownlintignore
#ignore_path: examples/.markdownlintignore
#rules: examples/rules/custom.js