debian-koji-osbuild/.github/workflows/ci.yml
Christian Kellner 8b9143aae9 ci: run unit tests
Use the koji test environment container to run the unit tests.
2020-09-13 13:20:19 +02:00

28 lines
615 B
YAML

name: Tests
on: [pull_request, push]
jobs:
pylint:
name: Source code liniting
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v2
- name: "Run pylint"
uses: osbuild/koji-osbuild/test@master
with:
run: |
pylint plugins/**/*.py test/**/*.py
unit:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: "Clone Repository"
uses: actions/checkout@v2
- name: "Run unit tests"
uses: osbuild/koji-osbuild/test@master
with:
run: |
python3 -m unittest discover -v test/unit/