Skip to content

Fix a potential issue with race condition when reloading a config #202

Fix a potential issue with race condition when reloading a config

Fix a potential issue with race condition when reloading a config #202

Workflow file for this run

name: Build pglookout
on:
push:
branches:
- main
tags:
- '**'
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
# only use the newest version for the lint step -> as long as the other version can run it it's ok
python-version: [3.11]
steps:
- id: checkout-code
uses: actions/checkout@v2
- id: prepare-python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- id: dependencies
run: |
pip install -e .
pip install -r requirements.dev.txt
- id: mypy
run: make mypy
- id: pylint
run: make pylint
- id: flake8
run: make flake8
- id: validate-style
run: make fmt-check
test:
runs-on: ubuntu-latest
needs: lint
strategy:
max-parallel: 4
matrix:
python-version: ['3.9', '3.10', '3.11']
pg-version: ['10', '11', '12', '13', '14', '15']
steps:
- id: checkout-code
uses: actions/checkout@v2
- id: prepare-python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- id: dependencies
run: |
# Setup the Postgres repositories
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main 14" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
# Setup build deps
sudo apt-get install -y libsnappy-dev
sudo apt-get install -y postgresql-${{ matrix.pg-version }}
# Setup common python dependencies
python -m pip install --upgrade pip
pip install --upgrade pytest mock pytest-cov
pip install -e .
- id: unittest
run: make coverage
- id: upload-codecov
uses: codecov/codecov-action@v2
with:
verbose: true