update reademe #41
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: Build Chain | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
UnitTests: | |
name: Python Unit Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run unit tests | |
run: | | |
coverage run -m unittest discover -s '.' -p 'test_*.py' -v | |
coverage report -m | |
Linting: | |
name: Pylint Analysis | |
runs-on: ubuntu-latest | |
needs: UnitTests | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pylint | |
pip install -r requirements.txt | |
- name: Run Pylint | |
run: | | |
pylint --disable=invalid-name --disable=too-few-public-methods --disable=C0116 --disable=multiple-statements $(git ls-files '*.py') |