File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 runs-on : ubuntu-latest
1313
1414 steps :
15+ - name : Install xvfb
16+ run : sudo apt-get install -y xvfb
17+
1518 - name : Checkout repo
1619 uses : actions/checkout@v4
1720
@@ -23,18 +26,27 @@ jobs:
2326 - name : Install uv
2427 uses : astral-sh/setup-uv@v3
2528
29+ - name : Create venv
30+ run : uv venv
31+
32+ - name : Install tk_tools
33+ run : uv pip install -e .
34+
2635 - name : Execute Tests
27- run : uv run pytest -v tests/ --cov=tk_tools
36+ run : xvfb-run -a uv run pytest -v tests/ --cov=tk_tools
2837
2938 - name : Build wheel file in `dist/`
3039 run : uv build
3140
41+ # - name: Build docs
42+ # run: |
43+ # mkdir gh-pages
44+ # touch gh-pages/.nojekyll
45+ # cd docs/
46+ # uv run sphinx-build -b html . _build
47+
3248 - name : Build docs
33- run : |
34- mkdir gh-pages
35- touch gh-pages/.nojekyll
36- cd docs/
37- uv run sphinx-build -b html . _build
49+ run : uv run sphinx-build -b html . ./html
3850
3951 - name : Publish distribution 📦 to Test PyPI with UV
4052 run : uv publish --token ${{ secrets.TEST_PYPI_API_TOKEN }} --publish-url https://test.pypi.org/legacy/
Original file line number Diff line number Diff line change 1313 - name : Install xvfb
1414 run : sudo apt-get install -y xvfb
1515
16- # - name: Export Display
17- # run: export DISPLAY=':99.0'
18- #
19- # - name: Setup xvfb
20- # run: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
21-
2216 - name : Check out repo
2317 uses : actions/checkout@v4
2418
3731 run : uv pip install -e .
3832
3933 - name : Execute Tests
40- # run: uv run pytest -v tests/ --cov=tk_tools
4134 run : xvfb-run -a uv run pytest -v tests/ --cov=tk_tools
You can’t perform that action at this time.
0 commit comments