-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split linting and testing job (#596)
Co-authored-by: giovp <giov.pll@gmail.com>
- Loading branch information
Showing
5 changed files
with
66 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Lint | ||
|
||
on: | ||
schedule: | ||
- cron: 00 00 * * 1 # every Monday at 00:00 | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- uses: actions/cache@v2 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: precommit-${{ env.pythonLocation }}-${{ hashFiles('**/.pre-commit-config.yaml') }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt install pandoc | ||
python -m pip install --upgrade pip | ||
pip install tox | ||
- name: Lint code | ||
run: | | ||
tox -e lint | ||
- name: Lint documentation | ||
run: | | ||
tox -e check-docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
-r ../requirements.txt | ||
gitpython | ||
ipython | ||
Jinja2<3.1.0 # https://github.com/spatialaudio/nbsphinx/issues/641 | ||
ipywidgets>=8.0.0 | ||
# Jinja2<3.1.0 # https://github.com/spatialaudio/nbsphinx/issues/641 | ||
Jinja2>=3.1.1 | ||
nbconvert>=6.4.5 | ||
# very slow build | ||
# nbsphinx>=0.8.1,<0.8.7 | ||
nbsphinx>=0.8.1,<0.8.7 | ||
pyenchant>=3.1.1 | ||
requests | ||
sphinx>=4,<4.0.3 # https://github.com/spatialaudio/nbsphinx/issues/584 | ||
# sphinx>=4,<4.0.3 # https://github.com/spatialaudio/nbsphinx/issues/584 | ||
sphinx>=5.1.1 | ||
sphinx-autodoc-annotation | ||
sphinx-autodoc-typehints>=1.10.3 | ||
sphinx_gallery>=0.8.2 | ||
sphinx_gallery>=0.8.2,<0.11 # https://github.com/spatialaudio/nbsphinx/pull/666 | ||
sphinx_rtd_theme | ||
sphinxcontrib-bibtex>=2.2.0 | ||
sphinxcontrib-spelling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters