Add pycodestyle analysis #3
Workflow file for this run
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, Test, Deploy | |
on: [push] | |
jobs: | |
info: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print node info | |
run: | | |
cat /etc/os-release | |
build: | |
runs-on: ubuntu-latest | |
needs: info | |
strategy: | |
matrix: | |
python-version: [ "3.10" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
apt install pycodestyle | |
pip install pylint build | |
- name: Build package | |
run: | | |
python -m build . | |
test: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Analysing the code with pylint | |
run: | | |
pycodestyle $(git ls-files '*.py') |