Move python deps to requirements.txt
parent
a3ce12585b
commit
ab3cc47e27
|
@ -12,11 +12,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: sudo apt update && sudo apt install -y python3-pip
|
run: sudo apt update && sudo apt install -y python3-pip
|
||||||
- name: Install latest jinja2 version
|
- name: Build docs (required for tests)
|
||||||
run: pip3 install jinja2
|
|
||||||
- name: Install mkdocs
|
|
||||||
run: pip3 install mkdocs mkdocs-material mkdocs-minify-plugin
|
|
||||||
- name: Build docs
|
|
||||||
run: make docs
|
run: make docs
|
||||||
- name: Run tests, formatting, vetting and linting
|
- name: Run tests, formatting, vetting and linting
|
||||||
run: make check
|
run: make check
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -39,7 +39,10 @@ help:
|
||||||
|
|
||||||
|
|
||||||
# Documentation
|
# Documentation
|
||||||
docs: .PHONY
|
docs-deps: .PHONY
|
||||||
|
pip3 install -r requirements.txt
|
||||||
|
|
||||||
|
docs: docs-deps
|
||||||
mkdocs build
|
mkdocs build
|
||||||
|
|
||||||
# Test/check targets
|
# Test/check targets
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
# The documentation uses 'mkdocs', which is written in Python
|
||||||
|
|
||||||
|
# See https://github.com/squidfunk/mkdocs-material/issues/2030
|
||||||
|
jinja2>=2.11.1
|
||||||
|
|
||||||
|
# mkdocs
|
||||||
|
mkdocs
|
||||||
|
mkdocs-material
|
||||||
|
mkdocs-minify-plugin
|
Loading…
Reference in New Issue