File tree Expand file tree Collapse file tree 6 files changed +43
-14
lines changed Expand file tree Collapse file tree 6 files changed +43
-14
lines changed Original file line number Diff line number Diff line change 11# Changes here will be overwritten by Copier
2- _commit : 42e01c1
2+ _commit : 33cc159
33_src_path : https://github.com/python-project-templates/base.git
44add_extension : jupyter
55email : 3105306+timkpaine@users.noreply.github.com
Original file line number Diff line number Diff line change @@ -14,3 +14,11 @@ updates:
1414 labels :
1515 - " lang: python"
1616 - " part: dependencies"
17+
18+ - package-ecosystem : " npm"
19+ directory : " /js"
20+ schedule :
21+ interval : " monthly"
22+ labels :
23+ - " lang: javascript"
24+ - " part: dependencies"
Original file line number Diff line number Diff line change 1-
21name : Build Status
32
43on :
@@ -60,18 +59,18 @@ jobs:
6059
6160 - name : Lint
6261 run : make lint
63- if : ${{ matrix.os == 'ubuntu-latest' }}
62+ if : matrix.os == 'ubuntu-latest'
6463
6564 - name : Checks
6665 run : make checks
67- if : ${{ matrix.os == 'ubuntu-latest' }}
66+ if : matrix.os == 'ubuntu-latest'
6867
6968 - name : Build
7069 run : make build
7170
7271 - name : Test
7372 run : make coverage
74- if : ${{ matrix.os == 'ubuntu-latest' }}
73+ if : matrix.os == 'ubuntu-latest'
7574
7675 - name : Upload test results (Python)
7776 uses : actions/upload-artifact@v4
@@ -86,12 +85,20 @@ jobs:
8685 with :
8786 files : |
8887 **/junit.xml
89- if : ${{ matrix.os == 'ubuntu-latest' }}
88+ if : matrix.os == 'ubuntu-latest'
9089
9190 - name : Upload coverage
9291 uses : codecov/codecov-action@v4
92+ with :
93+ token : ${{ secrets.CODECOV_TOKEN }}
9394
9495 - name : Make dist
9596 run : make dist
96- if : ${{ matrix.os == 'ubuntu-latest' }}
97+ if : matrix.os == 'ubuntu-latest'
98+
99+ - uses : actions/upload-artifact@v4
100+ with :
101+ name : dist-${{matrix.os}}
102+ path : dist
103+ if : matrix.os == 'ubuntu-latest'
97104
Original file line number Diff line number Diff line change 1-
21name : Copier Updates
32
43on :
Original file line number Diff line number Diff line change @@ -73,13 +73,13 @@ annotate: ## run python type annotation checks with mypy
7373# ########
7474.PHONY : test-py tests-py coverage-py
7575test-py : # # run python tests
76- python -m pytest -v jupyter_template/tests --junitxml=junit.xml
76+ python -m pytest -v jupyter_template/tests
7777
7878# alias
7979tests-py : test-py
8080
8181coverage-py : # # run python tests and collect test coverage
82- python -m pytest -v jupyter_template/tests --junitxml=junit.xml -- cov=jupyter_template --cov-branch --cov-fail-under=50 --cov-report term-missing --cov-report xml
82+ python -m pytest -v jupyter_template/tests --cov=jupyter_template --cov-report term-missing --cov-report xml
8383
8484.PHONY : test-js tests-js coverage-js
8585test-js : # # run js tests
@@ -117,18 +117,18 @@ major: ## bump a major version
117117# #######
118118# DIST #
119119# #######
120- .PHONY : dist dist-build dist-sdist dist-local-wheel publish
120+ .PHONY : dist dist-py dist-js dist-check publish
121121
122- dist-build- py : # build python dists
122+ dist-py : # build python dists
123123 python -m build -w -s
124124
125- dist-build- js : # build js dists
125+ dist-js : # build js dists
126126 cd js; pnpm pack
127127
128128dist-check : # # run python dist checker with twine
129129 python -m twine check dist/*
130130
131- dist : clean build dist-build- js dist-build -py dist-check # # build all dists
131+ dist : clean build dist-js dist-py dist-check # # build all dists
132132
133133publish : dist # publish python assets
134134
Original file line number Diff line number Diff line change @@ -81,6 +81,20 @@ ignore = [
8181 " jupyter_template/nbextension/**" ,
8282]
8383
84+ [tool .coverage .run ]
85+ branch = true
86+ omit = [
87+ " jupyter_template/tests/integration/" ,
88+ ]
89+ [tool .coverage .report ]
90+ exclude_also = [
91+ " raise NotImplementedError" ,
92+ " if __name__ == .__main__.:" ,
93+ " @(abc\\ .)?abstractmethod" ,
94+ ]
95+ ignore_errors = true
96+ fail_under = 50
97+
8498[tool .hatch .build ]
8599artifacts = [
86100 " jupyter_template/nbextension" ,
@@ -139,6 +153,7 @@ build_cmd = "build"
139153npm = " pnpm"
140154
141155[tool .pytest .ini_options ]
156+ addopts = [" -vvv" , " --junitxml=junit.xml" ]
142157asyncio_mode = " strict"
143158testpaths = " jupyter_template/tests"
144159
You can’t perform that action at this time.
0 commit comments