Update run command #18
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: Tox tests | |
on: [push, pull_request] | |
jobs: | |
py37: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update existing dependencies | |
run: sudo apt-get update -y | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
- name: Install Tox | |
run: pip install tox | |
- name: Run Tox | |
run: tox -e py37 -vv | |
black: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update existing dependencies | |
run: sudo apt-get update -y | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
- name: Install Tox | |
run: pip install tox | |
- name: Run Tox | |
run: tox -e black -vv | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update existing dependencies | |
run: sudo apt-get update -y | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
- name: Install Tox | |
run: pip install tox | |
- name: Run Tox | |
run: tox -e flake8 -vv | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update existing dependencies | |
run: sudo apt-get update -y | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
- name: Install Tox | |
run: pip install tox | |
- name: Run Tox | |
run: tox -e docs -vv | |
mypy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Update existing dependencies | |
run: sudo apt-get update -y | |
- name: Install system dependencies | |
run: sudo apt-get install -y libkrb5-dev | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
- name: Install Tox | |
run: pip install tox | |
- name: Run Tox | |
run: tox -e mypy -vv | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update existing dependencies | |
run: sudo apt-get update -y | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
- name: Install Tox | |
run: pip install tox | |
- name: Run Tox | |
run: tox -e py37 | |
- name: Upload coverage to Codecov | |
uses: codecov/[email protected] | |
with: | |
fail_ci_if_error: true | |
verbose: true | |
bandit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update existing dependencies | |
run: sudo apt-get update -y | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.7 | |
- name: Install Tox | |
run: pip install tox | |
- name: Run Tox | |
run: tox -e py3-bandit -vv |