Skip to content

Commit

Permalink
🔧 Update pylint.yml to test and split the config
Browse files Browse the repository at this point in the history
  • Loading branch information
Senja20 committed Apr 25, 2024
1 parent 766ef31 commit 32ee949
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Pylint
name: Python CI

on: [push, workflow_dispatch]

jobs:
build:
install-dependencies:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
outputs:
python-version: ${{ steps.setup-python.outputs.python-version }}
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python
id: setup-python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -19,6 +19,27 @@ jobs:
python -m pip install --upgrade pip
pip install -U pylint
pip install -r requirements.txt
lint:
needs: install-dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ needs.install-dependencies.outputs.python-version }}
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
run: pylint $(git ls-files '*.py')

test:
needs: install-dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ needs.install-dependencies.outputs.python-version }}
- name: Run tests with pytest
run: pytest .

0 comments on commit 32ee949

Please sign in to comment.