File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Pylint
1+ name : Lint
22
33on : [push]
44
77 runs-on : ubuntu-latest
88 strategy :
99 matrix :
10- python-version : ["3.8 ", "3.9 ", "3.10 "]
10+ python-version : ["3.10 ", "3.11 ", "3.12 "]
1111 steps :
1212 - uses : actions/checkout@v4
1313 - name : Set up Python ${{ matrix.python-version }}
14- uses : actions/setup-python@v3
14+ uses : actions/setup-python@v5
1515 with :
1616 python-version : ${{ matrix.python-version }}
1717 - name : Install dependencies
Original file line number Diff line number Diff line change 11# This workflow will install Python dependencies, run tests and lint with a single version of Python
22# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
33
4- name : Python application
4+ name : CI
55
66on :
77 push :
@@ -19,21 +19,19 @@ jobs:
1919
2020 steps :
2121 - uses : actions/checkout@v4
22- - name : Set up Python 3.10
23- uses : actions/setup-python@v3
22+ - name : Set up Python 3.12
23+ uses : actions/setup-python@v5
2424 with :
25- python-version : " 3.10 "
25+ python-version : " 3.12 "
2626 - name : Install dependencies
2727 run : |
2828 python -m pip install --upgrade pip
2929 pip install flake8 pytest
30- if [ -f requirements .txt ]; then pip install -r requirements .txt; fi
30+ if [ -f scanrequirements .txt ]; then pip install -r scanrequirements .txt; fi
3131 - name : Lint with flake8
3232 run : |
33- # stop the build if there are Python syntax errors or undefined names
3433 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
35- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3634 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3735 - name : Test with pytest
3836 run : |
39- pytest
37+ pytest tests/python/unit/ -v
Original file line number Diff line number Diff line change 55![ Socrates Blade Mascot] ( assets/socrates-blade-min.png )
66![ Version] ( https://img.shields.io/badge/version-3.2.0-blue )
77![ License] ( https://img.shields.io/badge/license-MIT-green )
8+ [ ![ CI] ( https://github.com/MalangPHPUG/socrates-blade/actions/workflows/python-app.yml/badge.svg )] ( https://github.com/MalangPHPUG/socrates-blade/actions/workflows/python-app.yml )
9+ [ ![ Lint] ( https://github.com/MalangPHPUG/socrates-blade/actions/workflows/pylint.yml/badge.svg )] ( https://github.com/MalangPHPUG/socrates-blade/actions/workflows/pylint.yml )
10+ [ ![ Tests] ( https://github.com/MalangPHPUG/socrates-blade/actions/workflows/python-app.yml/badge.svg?label=tests )] ( https://github.com/MalangPHPUG/socrates-blade/actions/workflows/python-app.yml )
811
912---
1013
You can’t perform that action at this time.
0 commit comments