Skip to content

Reorganize Vue templates #282

Reorganize Vue templates

Reorganize Vue templates #282

Workflow file for this run

name: "Promgen Tests"
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
docs:
name: Run tests
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: password
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
setup.cfg
docker/requirements.txt
- name: Fetch Promtool
run: |
sudo mkdir -p /usr/local/bin
curl -L -s https://github.com/prometheus/prometheus/releases/download/v2.8.1/prometheus-2.8.1.linux-amd64.tar.gz |\
sudo tar -xz -C /usr/local/bin --strip-components=1 prometheus-2.8.1.linux-amd64/promtool
sudo chmod +x /usr/local/bin/promtool
- name: Run Unittests
run: make test
env:
SYSTEM_PYTHON: python${{ matrix.python-version }}
SECRET_KEY: abcd
DATABASE_URL: mysql://root:password@127.0.0.1/promgen?charset=utf8mb4