Skip to content

Commit 62f0e1e

Browse files
Update github workflows
1 parent 5096801 commit 62f0e1e

2 files changed

Lines changed: 18 additions & 13 deletions

File tree

.github/workflows/publishTest.yml

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
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/

.github/workflows/unittest.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ jobs:
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

@@ -37,5 +31,4 @@ jobs:
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

0 commit comments

Comments
 (0)