added basic unit-tests #2
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: [latest] | |
paths: | |
- '**.py' | |
- '**.yml' | |
- '.github/workflows/lint.yml' | |
- 'requirements_lint.txt' | |
- '.pylintrc' | |
- '.yamllint' | |
pull_request: | |
branches: [latest] | |
paths: | |
- '**.py' | |
- '**.yml' | |
- '.github/workflows/lint.yml' | |
- 'requirements_lint.txt' | |
- '.pylintrc' | |
- '.yamllint' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref }} | |
- name: Install python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install -r requirements_lint.txt >/dev/null | |
pip install -r requirements_test.txt >/dev/null | |
pip install -r requirements.txt >/dev/null | |
- name: Running PyLint | |
run: | | |
pylint --version | |
pylint --rcfile .pylintrc --recursive=y . | |
- name: Running YamlLint | |
run: | | |
yamllint --version | |
yamllint . |