-
Notifications
You must be signed in to change notification settings - Fork 6
48 lines (43 loc) · 1.16 KB
/
ci_test.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
48
name: CI tests
on:
push:
pull_request:
schedule:
- cron: '0 8 * * *'
jobs:
build:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
runs-on: ubuntu-20.04
services:
mariadb:
image: mariadb:latest
ports:
- 3306:3306
env:
MYSQL_USER: silence
MYSQL_PASSWORD: 123456
MYSQL_DATABASE: testing
MYSQL_ROOT_PASSWORD: 123456
options: --health-cmd="mariadb-admin ping" --health-interval=8s --health-timeout=4s --health-retries=10
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
- name: Test Silence
run: |
silence new ci_app --url https://github.com/DEAL-US/Silence-CI-Project
cd ci_app
silence createdb
silence createapi
silence run &
sleep 15
cd test
python run_tests.py