Skip test_backupCount_valid_values_pass if client version is older th… #435
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: 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 |