Skip to content

bugfix: add cloud account type to run_assesment (#12) #16

bugfix: add cloud account type to run_assesment (#12)

bugfix: add cloud account type to run_assesment (#12) #16

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
build:
name: Build on Python${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.6' , '3.7' , '3.8' , '3.9', '3.10']
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setting Python ${{ matrix.python }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --user wheel
pip install -r requirements.txt
- name: Build and Install
run: python ./dome9/dome9.py
- name: Build and Install
run: python setup.py sdist bdist_wheel
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --exclude=tests
# Add --exit-zero to throw all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --max-complexity=10 --max-line-length=127 --statistics --exclude=tests
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setting Python 3
uses: actions/setup-python@v3
with:
python-version: '3.*'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Install package
run: python setup.py install
- name: Running tests
run: python -m pytest tests/ -v