Skip to content

feat: Implements rosemary test command #172

feat: Implements rosemary test command

feat: Implements rosemary test command #172

Workflow file for this run

name: Flask CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
build:
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:latest
env:
MARIADB_DATABASE: uvlhubdb_test
MARIADB_USER: uvlhub
MARIADB_PASSWORD: uvlhub_password
MARIADB_ROOT_PASSWORD: uvlhub_root_password
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping -h localhost -u root --password=vRwgXWu0ns"
--health-interval=10s
--health-timeout=5s
--health-retries=5
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
env:
FLASK_ENV: testing
MARIADB_HOSTNAME: 127.0.0.1
MARIADB_PORT: 3306
MARIADB_DATABASE: uvlhubdb_test
MARIADB_USER: uvlhub_user
MARIADB_PASSWORD: uvlhub_password
run: |
rosemary test