Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Bump docformatter from 1.5.1 to 1.7.4 #425

Bump docformatter from 1.5.1 to 1.7.4

Bump docformatter from 1.5.1 to 1.7.4 #425

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
ci:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: |
pip install poetry
poetry config virtualenvs.create false
- name: Install dependencies
run: poetry install
- name: Run pylint
run: pylint asyncpgx
- name: Run mypy
run: mypy asyncpgx
- name: Run pytest
run: pytest . --cov-report=xml --cov=.
env:
POSTGRES_TEST_DSN: postgresql://postgres:postgres@127.0.0.1:5432/postgres
- name: Push test coverage
if: ${{ matrix.python-version == '3.10' && github.event_name == 'push' }}
run: bash <(curl -s https://codecov.io/bash)
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: Push the docs
if: ${{ matrix.python-version == '3.10' && github.event_name == 'push' }}
run: |
git remote set-url origin https://${{ secrets.DOCS_PUSH_GITHUB_LOGIN }}:${{ secrets.DOCS_PUSH_GITHUB_TOKEN }}@github.com/laukhin/asyncpgx.git
git fetch --all
cd docs
make html
cd build
git config user.email "ci@fake.com"
git config user.name "asyncpgx CI"
mkdir /tmp/docs
cp -r html /tmp/
cd ../../
git checkout docs --
rm -rf docs
mv /tmp/html ./docs
git add docs
git commit -m "Update the docs." || (echo "No need to commit." && exit 0)
git push --force origin HEAD:docs
git checkout master