Skip to content

Use the private snapshot repo (#684) #389

Use the private snapshot repo (#684)

Use the private snapshot repo (#684) #389

name: Run linter, generate docs, run mypy
on:
push:
branches:
- master
- '[45].*.z'
pull_request:
branches:
- master
- '[45].*.z'
jobs:
run-linter:
runs-on: ubuntu-latest
name: Run black to check the code style
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Checkout to code
uses: actions/checkout@v2
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Run black
run: |
black --check --config black.toml .
generate_docs:
runs-on: ubuntu-latest
name: Generate documentation
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Checkout to code
uses: actions/checkout@v2
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Generate documentation
working-directory: docs
run: |
make html SPHINXOPTS="-W --keep-going -b linkcheck"
run-mypy:
runs-on: ubuntu-latest
name: Run mypy to check type annotations
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Checkout to code
uses: actions/checkout@v2
- name: Install dependencies
run: |
pip install -r requirements-dev.txt
- name: Run mypy
run: |
mypy --show-error-codes hazelcast