Moving the linter and unit tests to github workflows and out of the gitlab CI system has the advantage that pull request from forked repos will run the tests. In the long run I think we should move away completely from gitlab CI and use github actions as this will reduce the number of external services used in the kiwi project. This commit starts with the most simple parts: unit and type tests, doc rendering and code style
29 lines
607 B
YAML
29 lines
607 B
YAML
name: CI-Code-Style
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
pull_request:
|
|
|
|
jobs:
|
|
unit_tests:
|
|
name: Linter checks for KIWI python and Shell code
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.6, 3.8]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Python${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install Tox
|
|
run: |
|
|
sudo apt update && sudo apt install tox
|
|
- name: Run code checks
|
|
run: |
|
|
tox -e check
|