File tree 3 files changed +20
-4
lines changed
3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 35
35
sudo apt-get update && sudo apt-get install pandoc
36
36
python -m venv venv
37
37
. venv/bin/activate
38
- python -m pip install ".[sphinx]"
38
+ python -m pip install ".[dev, sphinx]"
39
39
cd docs; make html
40
+ - run :
41
+ name : Run tests
42
+ # TODO: This coverage report could be submitted to codecov
43
+ command : |
44
+ . venv/bin/activate
45
+ python -m pytest --cov=src --cov-report=term --cov-report=xml
40
46
- store_artifacts :
41
47
path : docs/_build/html/
42
48
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Pull request guidelines
25
25
26
26
::
27
27
28
- python -m pip install -e ".[sphinx]"
28
+ python -m pip install -e ".[dev, sphinx]"
29
29
30
30
To build the documentation locally, use
31
31
@@ -52,7 +52,13 @@ Pull request guidelines
52
52
- Re-add any changed files to your staging area and run pre-commit again to
53
53
make sure any fixes are applied to your code.
54
54
55
- 4. **Commit your changes and send your pull request as usual. **
55
+ 4. **Test Coverage **
56
+
57
+ For any new or changed behavior, please add unit test coverage. See notes in
58
+ `conftest.py <https://github.com/melissawm/sphinx-tags/tree/main/test/conftest.py >`__
59
+ for details on testing setup.
60
+
61
+ 5. **Commit your changes and send your pull request as usual. **
56
62
57
63
Releases
58
64
--------
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ keywords = [
17
17
18
18
dependencies = [
19
19
" sphinx>4" ,
20
- " pre-commit" ,
21
20
]
22
21
23
22
[project .optional-dependencies ]
@@ -27,6 +26,11 @@ sphinx = [
27
26
" nbsphinx" ,
28
27
" myst-parser"
29
28
]
29
+ dev = [
30
+ " pytest>=6.0" ,
31
+ " pytest-cov" ,
32
+ " pre-commit"
33
+ ]
30
34
31
35
[project .urls ]
32
36
Home = " https://github.com/melissawm/sphinx-tags"
You can’t perform that action at this time.
0 commit comments