-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changing pylint action to see if work
- Loading branch information
Showing
1 changed file
with
20 additions
and
67 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,79 +1,32 @@ | ||
name: test | ||
on: [pull_request] | ||
name: Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
lint: | ||
name: Test Lint | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.11"] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
pip install . | ||
- uses: Silleellie/pylint-github-action@v2 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
pip install . | ||
- name: Run pylint test | ||
uses: Silleellie/pylint-github-action@v2 | ||
with: | ||
|
||
# Path of the package(s) or python file(s) to lint, relative to the repository root. | ||
# If more than one package (or python file) should be linted, simply specify all of them | ||
# with the multi-line notation like so: | ||
# lint-path: | | ||
# src | ||
# other_src | ||
# main.py | ||
# ... | ||
# | ||
# Required | ||
lint-path: src | ||
|
||
# Version of the Python interpreter which will install all requirements of your project | ||
# and lint the package(s) or python file(s) specified with the `lint-path` argument | ||
# | ||
# Required | ||
python-version: 3.11 | ||
|
||
# Path of the requirements of your project, relative to the repository root. | ||
# This can be easily changed in case you have `requirements-dev.txt` | ||
# | ||
# Optional, Default: requirements.txt | ||
# requirements-path: requirements.txt | ||
|
||
# Path of the README.md to update with the pylint badge, relative to the repository root. | ||
# | ||
# Optional, Default: README.md | ||
readme-path: README.md | ||
|
||
# Text to display in the badge | ||
# | ||
# Optional, Default: PyLint | ||
badge-text: PyLint | ||
|
||
# Color of the badge for pylint scores < 5. | ||
# Hex, rgb, rgba, hsl, hsla and css named colors can all be used | ||
# | ||
# Optional, Default: red | ||
color-bad-score: red | ||
|
||
# Color of the badge for pylint scores in range [5,8). | ||
# Hex, rgb, rgba, hsl, hsla and css named colors can all be used | ||
# | ||
# Optional, Default: orange | ||
color-ok-score: orange | ||
|
||
# Color of the badge for pylint scores in range [8,10). | ||
# Hex, rgb, rgba, hsl, hsla and css named colors can all be used | ||
# | ||
# Optional, Default: yellow | ||
color-good-score: yellow | ||
|
||
# Color of the badge for pylint scores == 10. | ||
# Hex, rgb, rgba, hsl, hsla and css named colors can all be used | ||
# | ||
# Optional, Default: brightgreen | ||
color-perfect-score: brightgreen | ||
color-perfect-score: brightgreen |