File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "template" : " https://github.com/sphinx-notes/cookiecutter" ,
3- "commit" : " 158e67b1043bf95237e70c4ffffbda02dffc4886 " ,
3+ "commit" : " 4c6b17aec1a4b8ddca95c4882c6bed2bc230d595 " ,
44 "checkout" : null ,
55 "context" : {
66 "cookiecutter" : {
2020 "sphinx_version" : " 7.0" ,
2121 "development_status" : " 3 - Alpha" ,
2222 "_template" : " https://github.com/sphinx-notes/cookiecutter" ,
23- "_commit" : " 158e67b1043bf95237e70c4ffffbda02dffc4886 "
23+ "_commit" : " 4c6b17aec1a4b8ddca95c4882c6bed2bc230d595 "
2424 }
2525 },
2626 "directory" : null
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 2727
2828.PHONY : test
2929test :
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
3640# Build distribution package, for "install" or "upload".
3741.PHONY : dist
3842dist : pyproject.toml clean
39- $(PY ) -m build
43+ # Use ``--no-isolation`` to prevent network accessing when in local env.
44+ $(PY ) -m build $(if $(CI ) ,,--no-isolation)
4045
4146# Install distribution package to user directory.
4247#
Original file line number Diff line number Diff line change 2323# ones.
2424extensions = [
2525 'sphinx.ext.githubpages' ,
26+ 'sphinx.ext.doctest' ,
27+ 'sphinx.ext.viewcode' ,
2628 'sphinx_design' ,
2729 'sphinx_copybutton' ,
2830 'sphinx_last_updated_by_git' ,
114116# documentation root, use os.path.abspath to make it absolute, like shown here.
115117import os
116118import sys
117- sys .path .insert (0 , os .path .abspath ('../src/sphinxnotes ' ))
118- extensions .append ('project' )
119+ sys .path .insert (0 , os .path .abspath ('../src/' ))
120+ extensions .append ('sphinxnotes. project' )
119121
120122# CUSTOM CONFIGURATION
121123primary_domain = 'any'
Original file line number Diff line number Diff line change 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 )
You can’t perform that action at this time.
0 commit comments