Add pre-build stage

This commit is contained in:
Ogi Moore 2020-12-19 20:58:25 -08:00
parent 3b1e55af1e
commit 34e9ee7c91

32
.github/workflows/pre-build.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: pre-build
# Run this workflow every time a new commit pushed to your repository
on: push
jobs:
# Set the job key. The key is displayed as the job name
# when a job name is not provided
pre-build:
# Name the Job
name: Pre-Build
# Set the type of machine to run on
runs-on: ubuntu-latest
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
# Runs the Super-Linter action
- name: Style check
run: |
pip install flake8
python setup.py style
- name: Build Docs
run: |
cd doc
python -m pip install -r requirements.txt
make html SPHINXOPTS='-W -v'