Add documentation and style check workflow
This commit is contained in:
committed by
Axel Kohlmeyer
parent
9ca0653c3e
commit
c11bd658fc
21
.github/workflows/documentation.yml
vendored
Normal file
21
.github/workflows/documentation.yml
vendored
Normal 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
42
.github/workflows/style.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user