Skip to content

feat: agent重装优化 #229

feat: agent重装优化

feat: agent重装优化 #229

Workflow file for this run

name: CodeCov
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
BKPAAS_BK_CRYPTO_TYPE:
- "CLASSIC"
- "SHANGMI"
PYTHON_VERSION:
- "3.6"
name: "[CodeCov][${{ matrix.BKPAAS_BK_CRYPTO_TYPE }}] with Python ${{ matrix.PYTHON_VERSION }}"
env:
DJANGO_SETTINGS_MODULE: "settings"
DEBUG: true
BKPAAS_ENGINE_REGION: "open"
RUN_ENV: "open"
APP_CODE: "bk_nodeman"
APP_ID: "bk_nodeman"
SECRET_KEY: "12345678-1234-5678-1234-123456789012"
APP_TOKEN: "12345678-1234-5678-1234-123456789012"
BK_BACKEND_CONFIG: ""
BK_PAAS_HOST: "http://127.0.0.1"
BK_IAM_V3_INNER_HOST: "127.0.0.1"
BKAPP_CRYPTO_TYPE: ${{ matrix.BKAPP_CRYPTO_TYPE }}
BKAPP_BKNODEMAN_NGINX_URL: "127.0.0.1"
BKAPP_BACKEND_HOST: "http://127.0.0.1"
BKAPP_BK_NODE_APIGATEWAY: "http://127.0.0.1:8000/"
BKAPP_NODEMAN_CALLBACK_URL: "http://127.0.0.1:10300/backend"
BKAPP_NODEMAN_OUTER_CALLBACK_URL: "http://127.0.0.1:10300/backend"
BROKER_URL: "redis://localhost:6379/0"
MYSQL_NAME: "bk_nodeman"
MYSQL_USER: "root"
MYSQL_PASSWORD: "root"
MYSQL_HOST: "localhost"
MYSQL_PORT: 3306
MYSQL_TEST_NAME: "bk_nodeman_test"
WORKFLOW_DIR: "scripts/workflows"
YUM_INSTALL_SERVICE: ""
CREATE_PYTHON_VENV: ""
services:
# Label used to access the service container
redis:
# Docker Hub image
image: redis
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps port 6379 on service container to the host
- 6379:6379
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.PYTHON_VERSION }}
- name: Setup Mysql
run: |
sudo systemctl start mysql.service
- name: Generate Report
run: |
./scripts/workflows/bk_ci.sh
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1