Skip to content

Release 0.65.0 #511 #456

Release 0.65.0 #511

Release 0.65.0 #511 #456

Workflow file for this run

name: "Promgen Tests"
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docs:
name: Run tests
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: ["3.9"]
services:
mysql:
image: mysql:8.0
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@v4.1.3
- uses: actions/setup-python@v5.1.0
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: |
pyproject.toml
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