This repository has been archived by the owner on Nov 6, 2023. It is now read-only.
Docs CI #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docs CI | |
on: | |
push: | |
branches: | |
- master | |
- '[0-9].[0-9]' | |
pull_request: | |
branches: | |
- master | |
- '[0-9].[0-9]' | |
schedule: | |
- cron: '0 1 * * *' # nightly build | |
concurrency: | |
group: ${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
build-docs: | |
name: Build docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
cache: 'pip' | |
- name: install deps | |
run: | | |
sudo apt-get update -yqq | |
sudo apt-get install -yqq pandoc make | |
- name: run code linters | |
run: | | |
pip install -r requirements.txt -r dev_requirements.txt -r docs/requirements.txt | |
invoke build-docs | |
- name: upload docs | |
uses: actions/upload-artifact@v3 | |
with: | |
name: redis-py-docs | |
path: | | |
docs/_build/html |