diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index af7d6c2..78ebb28 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python: [3.6, 3.7, 3.8] + python: [3.8] steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/sphinx.yaml b/.github/workflows/sphinx.yaml new file mode 100644 index 0000000..f5affaa --- /dev/null +++ b/.github/workflows/sphinx.yaml @@ -0,0 +1,28 @@ +name: documentation + +on: + push: + branches: + - master + +jobs: + build-and-delpoy: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Python + uses: actions/setup-python@v1 + with: + python-version: 3.8 + - name: Install Tox and any other packages + run: pip install tox + - name: Build Sphinx docs + run: tox -e docs + - name: Deploy + if: success() + uses: peaceiris/actions-gh-pages@v3 + with: + publish_branch: gh-pages + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: docs/build/html/ diff --git a/README.rst b/README.rst index d250d13..b954908 100644 --- a/README.rst +++ b/README.rst @@ -1,9 +1,12 @@ -============================ -Website stats collector demo -============================ +==================== +Website checker demo +==================== -.. image:: https://github.com/vladan/aiven-site-checker/workflows/chweb/badge.svg - :target: https://github.com/vladan/aiven-site-checker/actions?query=branch%3Amaster +.. image:: https://github.com/vladan/aiven-site-checker/workflows/build/badge.svg + :target: https://github.com/vladan/aiven-site-checker/actions?query=workflow%3Abuild+branch%3Amaster + +.. image:: https://github.com/vladan/aiven-site-checker/workflows/documentation/badge.svg + :target: https://github.com/vladan/aiven-site-checker/actions?query=workflow%3Adocumentation+branch%3Amaster CHWEB is a website checking tool. diff --git a/docs/source/_static/.keep b/docs/source/_static/.keep new file mode 100644 index 0000000..e69de29 diff --git a/docs/source/_templates/.keep b/docs/source/_templates/.keep new file mode 100644 index 0000000..e69de29 diff --git a/setup.py b/setup.py index 0bcea1d..ae04a5a 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from setuptools import setup # type: ignore setup( use_scm_version=True, setup_requires=['setuptools_scm'], - python_requires='>=3.6, <4', + python_requires='>=3.8, <4', install_requires=[ 'aiokafka==0.6.0', 'asyncpg==0.21.0', diff --git a/tox.ini b/tox.ini index db175d3..cd9e0f0 100644 --- a/tox.ini +++ b/tox.ini @@ -31,7 +31,7 @@ deps = sphinx sphinx-typlog-theme commands = - sphinx-build -W -b html -E ./source/ ./build/ + sphinx-build -W -b html -E ./source/ ./build/html/ [testenv:clean] deps = coverage