Add Address Space Hierarchy endpoint #159
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: Lint | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
black: | |
name: black | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- uses: actions/cache@v3 | |
with: | |
key: v0-${{ runner.os }}-pip-lint-${{ hashFiles('setup.py') }} | |
path: ~/.cache/pip | |
restore-keys: | | |
v0-${{ runner.os }}-pip-lint- | |
v0-${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[lint] | |
- name: Run black | |
run: black --check --verbose --exclude docs . | |
flake8: | |
name: flake8 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- uses: actions/cache@v3 | |
with: | |
key: v0-${{ runner.os }}-pip-lint-${{ hashFiles('setup.py') }} | |
path: ~/.cache/pip | |
restore-keys: | | |
v0-${{ runner.os }}-pip-lint- | |
v0-${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[lint] | |
- name: Run flake8 | |
run: flake8 --exclude docs prsw tests | |
pydocstyle: | |
name: pydocstyle | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- uses: actions/cache@v3 | |
with: | |
key: v0-${{ runner.os }}-pip-lint-${{ hashFiles('setup.py') }} | |
path: ~/.cache/pip | |
restore-keys: | | |
v0-${{ runner.os }}-pip-lint- | |
v0-${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[lint] | |
- name: Run pydocstyle | |
run: pydocstyle prsw | |
sphinx: | |
name: sphinx | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- uses: actions/cache@v3 | |
with: | |
key: v0-${{ runner.os }}-pip-lint-${{ hashFiles('setup.py') }} | |
path: ~/.cache/pip | |
restore-keys: | | |
v0-${{ runner.os }}-pip-lint- | |
v0-${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[lint] | |
- name: Run sphinx | |
run: sphinx-build -W --keep-going docs/ /tmp/foo |