Skip to content

Commit 6cbc37b

Browse files
committed
chore: Update project template to sphinx-notes/cookiecutter@62cd9619
1 parent eb88060 commit 6cbc37b

5 files changed

Lines changed: 27 additions & 4 deletions

File tree

.cruft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"template": "https://github.com/sphinx-notes/cookiecutter",
3-
"commit": "634c4022e575bd086ea47f3b42feafe24e14a939",
3+
"commit": "62cd96195962da3392cdc34125c95e9144a5f5ca",
44
"checkout": null,
55
"context": {
66
"cookiecutter": {
@@ -20,7 +20,7 @@
2020
"sphinx_version": "7.0",
2121
"development_status": "3 - Alpha",
2222
"_template": "https://github.com/sphinx-notes/cookiecutter",
23-
"_commit": "634c4022e575bd086ea47f3b42feafe24e14a939"
23+
"_commit": "62cd96195962da3392cdc34125c95e9144a5f5ca"
2424
}
2525
},
2626
"directory": null

.github/workflows/test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,14 @@ jobs:
1212
- uses: actions/setup-python@v5
1313
with:
1414
python-version-file: 'pyproject.toml'
15-
- run: python3 -m pip install .[dev]
15+
- run: python3 -m pip install .[test]
1616
- run: make test
17+
doctest:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions/setup-python@v5
22+
with:
23+
python-version-file: 'pyproject.toml'
24+
- run: python3 -m pip install .[docs]
25+
- run: make doctest

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ fmt:
2727

2828
.PHONY: test
2929
test:
30-
$(PY) -m unittest discover -s tests -v
30+
$(PY) -m pytest tests/ -v
31+
32+
.PHONY: doctest
33+
doctest:
34+
$(MAKE) doctest -C docs/
3135

3236
################################################################################
3337
# Distribution Package

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
# ones.
2424
extensions = [
2525
'sphinx.ext.githubpages',
26+
'sphinx.ext.doctest',
2627
'sphinx_design',
2728
'sphinx_copybutton',
2829
'sphinx_last_updated_by_git',

tests/test_always_pass.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This file is generated from sphinx-notes/cookiecutter.
2+
# DO NOT EDIT.
3+
4+
import unittest
5+
6+
7+
class TestAlwaysPass(unittest.TestCase):
8+
def test_dummy(self):
9+
self.assertTrue(True)

0 commit comments

Comments
 (0)