Skip to content

doc: update documentation (#13) #39

doc: update documentation (#13)

doc: update documentation (#13) #39

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Linters and Tests
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: |
poetry install
- name: Black formatting
run: |
poetry run black sophosfirewall_python/
- name: Pylint
run: |
poetry run pylint sophosfirewall_python/firewallapi.py -vvv
- name: Pytest
run: |
poetry run pytest sophosfirewall_python/unittests.py
- name: Bandit
run: |
poetry run bandit sophosfirewall_python/firewallapi.py