Skip to content

added GH action for generating docs on release (#120) #95

added GH action for generating docs on release (#120)

added GH action for generating docs on release (#120) #95

name: Run Tests on push
on:
push:
branches: [ main ]
jobs:
test:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run docker compose up
run: docker compose -f tests/docker-compose.yml up -d
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install https://github.com/glencoesoftware/zeroc-ice-py-linux-x86_64/releases/download/20231130/zeroc_ice-3.6.5-cp38-cp38-manylinux_2_28_x86_64.whl
pip install .[tables]
sleep 60
- name: Test with pytest and generate coverage report/badge
run: |
pip install coverage coverage-badge
coverage run -m pytest tests/
coverage report -i
coverage-badge -f -o coverage.svg
- name: Commit badge
run: |
git config --global user.name 'Erick Ratamero'
git config --global user.email '[email protected]'
git add coverage.svg
git commit --allow-empty -am "Automated updating coverage badge"
git push