pyqtgraph/.github/workflows/pre-build.yml

33 lines
836 B
YAML
Raw Normal View History

2020-12-20 04:58:25 +00:00
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
2020-12-20 05:33:52 +00:00
- name: Setup Python 3.9
2020-12-20 04:58:25 +00:00
uses: actions/setup-python@v2
with:
2020-12-20 05:33:52 +00:00
python-version: '3.9'
2020-12-20 04:58:25 +00:00
# Runs the Super-Linter action
- name: Style check
run: |
pip install flake8
2020-12-20 05:33:52 +00:00
python -m flake8 .
2020-12-20 04:58:25 +00:00
- name: Build Docs
run: |
cd doc
python -m pip install -r requirements.txt
make html SPHINXOPTS='-W -v'