Add documentation and style check workflow

This commit is contained in:
Richard Berger
2020-10-01 11:45:13 -04:00
committed by Axel Kohlmeyer
parent 9ca0653c3e
commit c11bd658fc
2 changed files with 63 additions and 0 deletions

21
.github/workflows/documentation.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: documentation
on:
push:
branches:
- master
paths:
- 'doc/*'
jobs:
build:
continue-on-error: true
runs-on: ubuntu-latest
container: "lammps/buildenv:fedora32_mingw"
steps:
- uses: actions/checkout@master
- name: Generate HTML
run: make -C doc -j 2 html
- name: Generate PDF
run: make -C doc -j 2 pdf
- name: Check Spelling
run: make -C doc -j 2 spelling

42
.github/workflows/style.yml vendored Normal file
View File

@ -0,0 +1,42 @@
name: style
on:
push:
branches:
- master
jobs:
check_whitespace:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade pyyaml
sudo apt install -y ninja-build
- uses: actions/checkout@master
- name: Configure
run: cmake -B build -G Ninja -D Python3_EXECUTABLE=$(which python) -S cmake
- name: Check for whitespace errors
run: cmake --build build --target check-whitespace
check_permissions:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade pyyaml
sudo apt install -y ninja-build
- uses: actions/checkout@master
- name: Configure
run: cmake -B build -G Ninja -D Python3_EXECUTABLE=$(which python) -S cmake
- name: Check file permissions
run: cmake --build build --target check-permissions