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
600 B
YAML
29 lines
600 B
YAML
name: CI-Documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "master"
|
|
pull_request:
|
|
|
|
jobs:
|
|
unit_tests:
|
|
name: Test rendering Sphinx ReST documentation
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [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 sphinx build
|
|
run: |
|
|
tox -e doc
|