Skip to content

Commit ab260a8

Browse files
committed
Added CI and Pylint badges
1 parent f64672e commit ab260a8

File tree

3 files changed

+20
-39
lines changed

3 files changed

+20
-39
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: Continuous Integration
22

33
on:
44
push:

.github/workflows/pylint.yml

Lines changed: 17 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,24 @@
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

165
jobs:
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')

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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

0 commit comments

Comments
 (0)