Skip to content

Commit b8d6b36

Browse files
authored
Merge pull request #3 from executablebooks/testing2
2 parents 99c34c9 + 0a312cd commit b8d6b36

15 files changed

Lines changed: 1628 additions & 110 deletions

File tree

.github/workflows/tests.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,31 @@ jobs:
2222
run: |
2323
pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
2424
25+
tests:
26+
27+
runs-on: ubuntu-latest
28+
strategy:
29+
matrix:
30+
python-version: [3.6, 3.7, 3.8]
31+
32+
steps:
33+
- uses: actions/checkout@v2
34+
- name: Set up Python ${{ matrix.python-version }}
35+
uses: actions/setup-python@v1
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
- name: Install dependencies
39+
run: |
40+
python -m pip install --upgrade pip
41+
pip install .[testing]
42+
- name: Run pytest
43+
run: |
44+
pytest
45+
2546
publish:
2647

2748
name: Publish to PyPi
28-
needs: [pre-commit]
49+
needs: [pre-commit, tests]
2950
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
3051
runs-on: ubuntu-latest
3152
steps:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,5 @@ dmypy.json
127127

128128
# Pyre type checker
129129
.pyre/
130+
131+
.vscode/

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,35 @@
11
# sphinx-panels
22

3-
A sphinx extension for creating panels in a grid layout.
3+
[![Doc Status][rtd-badge]][rtd-link]
4+
[![Code style: black][black-badge]][black-link]
5+
[![PyPI][pypi-badge]][pypi-link]
46

5-
This directive creates panels of content in a 2 x N layout.
6-
The panels are separated by three or more ``-``
7+
A sphinx extension for creating panels in a grid layout.
8+
utilising both the bootstrap 4
9+
[grid system](https://getbootstrap.com/docs/4.0/layout/grid/),
10+
and [cards layout](https://getbootstrap.com/docs/4.0/components/card/).
711

812
```rst
913
.. panels::
10-
:centred:
1114
1215
Content of the top-left panel
1316
14-
---
17+
...
1518
1619
Content of the top-right panel
1720
18-
---
21+
...
1922
2023
Content of the bottom-left panel
2124
22-
---
25+
...
2326
2427
Content of the bottom-right panel
2528
```
29+
30+
[rtd-badge]: https://readthedocs.org/projects/sphinx-panels/badge/?version=latest
31+
[rtd-link]: https://sphinx-panels.readthedocs.io/en/latest/?badge=latest
32+
[black-badge]: https://img.shields.io/badge/code%20style-black-000000.svg
33+
[black-link]: https://github.com/ambv/black
34+
[pypi-badge]: https://img.shields.io/pypi/v/sphinx-panels.svg
35+
[pypi-link]: https://pypi.org/project/sphinx-panels

docs/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ help:
1818
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1919
%: Makefile
2020
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
21+
22+
clean:
23+
rm -r $(BUILDDIR)

docs/_static/ebp-logo.png

219 KB
Loading

docs/_static/footer-banner.jpg

73 KB
Loading

docs/_static/sphinx-logo.png

7.74 KB
Loading

0 commit comments

Comments
 (0)