-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (39 loc) · 1.04 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Unit Test
on:
push:
# branches: [main]
pull_request:
merge_group:
workflow_dispatch:
jobs:
unit-test:
runs-on: ubuntu-latest
name: Unit test
env:
MCIM_CONFIG: ${{ secrets.MCIM_CONFIG }} # 配置文件
REDIS_CONFIG: ${{ secrets.REDIS_CONFIG }} # 配置文件
MONGODB_CONFIG: ${{ secrets.MONGODB_CONFIG }} # 配置文件
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install python
uses: actions/setup-python@v5
with:
python-version: 3.11
- 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 ci-install
just import-data
just ci-config
- name: Run unit tests
run: |
just ci-test