ci: attempt to pull in setup-python from gha
fix: ensure ci lints all source files
This commit is contained in:
parent
dc57ecd228
commit
87e445ae98
2 changed files with 10 additions and 4 deletions
|
@ -6,22 +6,24 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v2
|
||||
- uses: https://github.com/actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.12
|
||||
- run: |
|
||||
pip install -r ./requirements.txt
|
||||
pip install -r ./requirements_sast.txt
|
||||
- name: Formatting
|
||||
run: python -m black .
|
||||
run: python -m black . --check
|
||||
- name: Linting
|
||||
run: python -m pylint .
|
||||
run: python -m pylint **/*.py
|
||||
test:
|
||||
name: Tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
github-server-url: https://forge.karnov.club
|
||||
- uses: https://github.com/actions/setup-python@v5
|
||||
with:
|
||||
python-version: 3.12
|
||||
- run: |
|
||||
|
|
|
@ -25,3 +25,7 @@ spud = "spud.cli:cli"
|
|||
[tool.setuptools]
|
||||
packages = ["spud"]
|
||||
|
||||
[tool.pylint.main]
|
||||
ignore = ["spud.venv"]
|
||||
ignore-paths = ["spud.venv"]
|
||||
jobs = 0
|
||||
|
|
Reference in a new issue