Create LICENSE and added GNU GENERAL PUBLIC LICENSE Version 2 #34
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-and-test-workflow | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
setup: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.9" | |
- name: Display Python Version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install -r dev-requirements.txt | |
- name: Lint core | |
run: pylint autosec/core | |
- name: Lint modules | |
run: pylint autosec/modules | |
- name: Core Tests | |
run: pytest autosec/core | |
- name: Module Interface Test | |
run: pytest autosec/modules/test_module_interfaces.py | |
- name: Module Tests | |
run: pytest --ignore=autosec/modules/test_module_interfaces.py autosec/modules |