test: integrate pylint into the test infrastructure
Introduce a third test-group called `src` alongside `mod` and `run. This will contain tests that run against the source code of osbuild. This initial commit introduces `test/src/test_pylint.py` which will run the python linter against all our sources.
This commit is contained in:
parent
b830bb7480
commit
082b840d94
4 changed files with 44 additions and 11 deletions
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
|
|
@ -4,7 +4,7 @@ on: [pull_request, push]
|
|||
|
||||
jobs:
|
||||
pylint:
|
||||
name: "pylint"
|
||||
name: "Source Tests"
|
||||
runs-on: ubuntu-latest
|
||||
container: docker.io/library/python:3.7
|
||||
steps:
|
||||
|
|
@ -12,8 +12,8 @@ jobs:
|
|||
run: pip install pylint==2.4.1 jsonschema
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Run pylint
|
||||
run: make test-pylint
|
||||
- name: Run Source Tests
|
||||
run: make test-src
|
||||
|
||||
module:
|
||||
name: "Module Unittests"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue