feat: 采集下发状态查询优化 --story=129836036 (#9436) #16131
This file contains hidden or 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: "[BKLog] CodeCov" | |
| permissions: | |
| contents: read | |
| actions: write | |
| defaults: | |
| run: | |
| working-directory: bklog | |
| on: | |
| push: | |
| paths: | |
| - 'bklog/**' | |
| pull_request: | |
| paths: | |
| - 'bklog/**' | |
| schedule: | |
| - cron: "0 10 * * *" | |
| # https://github.com/actions/checkout/issues/1590 | |
| env: | |
| ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | |
| jobs: | |
| run: | |
| # runs-on: ubuntu-20.04 | |
| runs-on: self-hosted | |
| defaults: | |
| run: | |
| shell: bash | |
| working-directory: bklog | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Create symlink for ai_agent | |
| run: ln -s ../ai_agent ./ai_agent | |
| - name: Setup Python environment | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11.10' | |
| - name: Generate Report | |
| run: | | |
| source scripts/test_env.sh | |
| sed -i '/APIGW_ENABLED/d' dev.env.yml | |
| pip install --upgrade pip setuptools | |
| pip install -r requirements.txt -i https://mirrors.tencent.com/pypi/simple/ --extra-index-url https://pypi.org/simple/ | |
| pip install coverage | |
| pip uninstall pycrypto -y | |
| pip uninstall pycryptodome -y | |
| pip install pycryptodome | |
| coverage run manage.py test apps.tests | |
| - name: Upload Coverage to Codecov | |
| uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 |