-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5ffe9d
commit a65c11c
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
name: Pylint | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10"] | ||
python-version: ["3.8", "3.9", "3.10"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# Set up the correct Python version for each matrix version | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
# Install pip and pipenv | ||
- name: Install dependencies | ||
- name: Install pip and pipenv | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pipenv | ||
# Install project dependencies using pipenv | ||
- name: Install dependencies from Pipfile | ||
# Install dependencies using pipenv and explicitly specify the Python version | ||
- name: Install dependencies with pipenv | ||
run: | | ||
pipenv install --dev | ||
- name: Analysing the code with pylint | ||
pipenv install --dev --python $(which python) | ||
# Run pylint within the pipenv environment | ||
- name: Analyse code with pylint | ||
run: | | ||
pylint $(find . -type f -name "*.py" ! -path "./ui/*") | ||
pipenv run pylint $(find . -type f -name "*.py" ! -path "./ui/*") | ||