mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 14:43:54 +02:00
Chore/rework workflow (#52)
* Reworked the lint action * Removed the file change requirement * Repaired mypy * Repaired pip-audit
This commit is contained in:
2
.github/workflows/documentation.yaml
vendored
2
.github/workflows/documentation.yaml
vendored
@ -5,8 +5,6 @@ on:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
doc-build:
|
||||
|
24
.github/workflows/lint-actions.yaml
vendored
24
.github/workflows/lint-actions.yaml
vendored
@ -2,10 +2,6 @@ name: Python-Lint
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '*.py'
|
||||
- poetry.lock
|
||||
- pyproject.toml
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
@ -49,7 +45,7 @@ jobs:
|
||||
- run: poetry install --without develop,doc
|
||||
- name: Run linters
|
||||
run: |
|
||||
mypy src tests --install-types --non-interactive
|
||||
mypy src tests
|
||||
|
||||
ruff:
|
||||
runs-on: ubuntu-latest
|
||||
@ -72,21 +68,19 @@ jobs:
|
||||
uses: snok/install-poetry@v1
|
||||
with:
|
||||
version: 1.4.2
|
||||
virtualenvs-create: true
|
||||
virtualenvs-path: ~/local/share/virtualenvs
|
||||
- name: Cache pipenv
|
||||
id: cache-pipenv
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.local/share/virtualenvs
|
||||
key: venv
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Install root, pip-licenses & pip-audit
|
||||
run: |
|
||||
poetry install --only-root
|
||||
poetry run pip install pip-licenses pip-audit
|
||||
- name: Poetry export
|
||||
run: poetry export -f requirements.txt --output requirements.txt
|
||||
- name: Check license
|
||||
run: |
|
||||
pip install pip-licenses
|
||||
pip-licenses --format=markdown --output-file=license-summary.md
|
||||
poetry run pip-licenses --format=markdown --output-file=license-summary.md
|
||||
- name: Archive license summary
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
@ -96,6 +90,4 @@ jobs:
|
||||
requirements.txt
|
||||
- name: Check requirements security with pip-audit
|
||||
run: |
|
||||
pip install pip-audit
|
||||
pip-audit -r requirements.txt --no-deps --disable-pip || true
|
||||
pip-audit -r requirements.txt --format=markdown --output=lbr-audit.md --no-deps --disable-pip
|
||||
poetry run pip-audit --format markdown -o lbr-audit.md
|
||||
|
4
.github/workflows/test-and-build-action.yaml
vendored
4
.github/workflows/test-and-build-action.yaml
vendored
@ -3,10 +3,6 @@ name: Test & Build
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
paths:
|
||||
- '*.py'
|
||||
- poetry.lock
|
||||
- pyproject.toml
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
Reference in New Issue
Block a user