File tree Expand file tree Collapse file tree 3 files changed +20
-39
lines changed
Expand file tree Collapse file tree 3 files changed +20
-39
lines changed Original file line number Diff line number Diff line change 1- name : Tests
1+ name : Continuous Integration
22
33on :
44 push :
Original file line number Diff line number Diff line change 1- name : Continuous Testing
1+ name : Pylint
22
3- on :
4- push :
5- branches :
6- - develop
7- - master
8- - " feature/*"
9- - " release/*"
10- - " hotfix/*"
11- pull_request :
12- branches :
13- - develop
14- - master
3+ on : [push]
154
165jobs :
17- test :
18- name : Run tests
6+ build :
197 runs-on : ubuntu-latest
20-
218 strategy :
229 matrix :
23- python-version : [3.12]
24-
10+ python-version : ["3.12"]
2511 steps :
26- - name : Check out code
27- uses : actions/checkout@v4
28-
29- - name : Set up Python
30- uses : actions/setup-python@v5
31- with :
32- python-version : ${{ matrix.python-version }}
33-
34- - name : Install dependencies
35- run : |
36- python -m pip install --upgrade pip
37- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
38-
39- - name : Install package
40- run : |
41- pip install -e .
42-
43- - name : Run tests
44- run : pytest -q
12+ - uses : actions/checkout@v3
13+ - name : Set up Python ${{ matrix.python-version }}
14+ uses : actions/setup-python@v3
15+ with :
16+ python-version : ${{ matrix.python-version }}
17+ - name : Install dependencies
18+ run : |
19+ python -m pip install --upgrade pip
20+ pip install pylint
21+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
22+ - name : Analysing the code with pylint
23+ run : |
24+ pylint $(git ls-files '*.py')
Original file line number Diff line number Diff line change 22
33<div >
44
5- [ ![ Continuous Testing] ( https://github.com/muizabdul29/PyBatteryID/actions/workflows/pylint.yml/badge.svg )] ( https://github.com/muizabdul29/PyBatteryID/actions/workflows/pylint.yml )
5+ [ ![ Continuous Testing] ( https://github.com/muizabdul29/PyBatteryID/actions/workflows/ci.yml/badge.svg )] ( https://github.com/muizabdul29/PyBatteryID/actions/workflows/ci.yml )
6+ [ ![ Pylint] ( https://github.com/muizabdul29/PyBatteryID/actions/workflows/pylint.yml/badge.svg )] ( https://github.com/muizabdul29/PyBatteryID/actions/workflows/pylint.yml )
67[ ![ release] ( https://img.shields.io/github/v/release/muizabdul29/PyBatteryID )] ( https://github.com/muizabdul29/PyBatteryID/releases )
78[ ![ DOI] ( https://zenodo.org/badge/704093134.svg )] ( https://doi.org/10.5281/zenodo.15437221 )
89
You can’t perform that action at this time.
0 commit comments