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
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-python@v2
|
- uses: https://github.com/actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.12
|
python-version: 3.12
|
||||||
- run: |
|
- run: |
|
||||||
pip install -r ./requirements.txt
|
pip install -r ./requirements.txt
|
||||||
pip install -r ./requirements_sast.txt
|
pip install -r ./requirements_sast.txt
|
||||||
- name: Formatting
|
- name: Formatting
|
||||||
run: python -m black .
|
run: python -m black . --check
|
||||||
- name: Linting
|
- name: Linting
|
||||||
run: python -m pylint .
|
run: python -m pylint **/*.py
|
||||||
test:
|
test:
|
||||||
name: Tests
|
name: Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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:
|
with:
|
||||||
python-version: 3.12
|
python-version: 3.12
|
||||||
- run: |
|
- run: |
|
||||||
|
|
|
@ -25,3 +25,7 @@ spud = "spud.cli:cli"
|
||||||
[tool.setuptools]
|
[tool.setuptools]
|
||||||
packages = ["spud"]
|
packages = ["spud"]
|
||||||
|
|
||||||
|
[tool.pylint.main]
|
||||||
|
ignore = ["spud.venv"]
|
||||||
|
ignore-paths = ["spud.venv"]
|
||||||
|
jobs = 0
|
||||||
|
|
Reference in a new issue