Skip to content

fix: 在主循环中添加延迟以减少 CPU 占用 #38

fix: 在主循环中添加延迟以减少 CPU 占用

fix: 在主循环中添加延迟以减少 CPU 占用 #38

Workflow file for this run

name: Unit Test
on:
push:
# branches: [main]
pull_request:
merge_group:
workflow_dispatch:
jobs:
unit-test:
runs-on: ubuntu-latest
name: Unit test
env:
CONFIG: ${{ secrets.CONFIG }} # 配置文件
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install python
uses: actions/setup-python@v5
with:
python-version: 3.11
cache: 'pip'
- name: Install just
uses: extractions/setup-just@v2
- name: Start Redis
uses: supercharge/[email protected]
- name: Start MongoDB
uses: supercharge/[email protected]
- name: Install dependencies
run: |
just mongodb-tool-install
just redis-tool-install
just ci-install
just import-data
just ci-config
- name: Run unit tests
run: |
just ci-test