updated version to 2.2.0 #439
This file contains 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: 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 |