Skip to content

Commit b52c1c1

Browse files
Update workflows
1 parent 5928695 commit b52c1c1

File tree

7 files changed

+20
-133
lines changed

7 files changed

+20
-133
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13+
- name: Install xvfb
14+
run: sudo apt-get install -y xvfb
15+
1316
- name: Checkout repo
1417
uses: actions/checkout@v4
1518

@@ -21,26 +24,29 @@ jobs:
2124
- name: Install uv
2225
uses: astral-sh/setup-uv@v3
2326

27+
- name: Create venv
28+
run: uv venv
29+
30+
- name: Install tk_tools
31+
run: uv pip install -e .
32+
2433
- name: Execute Tests
25-
run: uv run pytest -v tests/ --cov=tk_tools
34+
run: xvfb-run -a uv run pytest -v tests/ --cov=tk_tools
2635

2736
- name: Build wheel file in `dist/`
2837
run: uv build
2938

3039
- name: Build docs
31-
run: |
32-
mkdir gh-pages
33-
touch gh-pages/.nojekyll
40+
run: |
3441
cd docs/
35-
uv run sphinx-build -b html . _build
36-
cp -r _build/* ../gh-pages/
42+
uv run sphinx-build -b html . ./html
3743
38-
- name: Deploy documentation
39-
if: ${{ github.event_name == 'push' }}
40-
uses: JamesIves/github-pages-deploy-action@4.1.4
41-
with:
42-
branch: gh-pages
43-
folder: gh-pages
44+
# - name: Deploy documentation
45+
# if: ${{ github.event_name == 'push' }}
46+
# uses: JamesIves/github-pages-deploy-action@4.1.4
47+
# with:
48+
# branch: gh-pages
49+
# folder: gh-pages
4450

45-
- name: Publish distribution 📦 to Test PyPI with UV
51+
- name: Publish distribution 📦 to PyPI with UV
4652
run: uv publish --token ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/publishTest.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,6 @@ jobs:
3838
- name: Build wheel file in `dist/`
3939
run: uv build
4040

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-
4841
- name: Build docs
4942
run: |
5043
cd docs/

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "tk-tools"
3-
version = "0.17.0-alpha3"
3+
version = "0.17.0"
44
description = "Add your description here"
55
readme = "README.md"
66
requires-python = ">=3.11"

readme.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,6 @@ Here are some examples screenshots of the widgets you can create:
6767

6868
$>uv pip install -e .
6969

70-
Basic testing has been instantiated *however* it is currently limited. To execute style testing:
71-
72-
flake8 tk_tools
73-
74-
To execute automated tests:
75-
76-
py.test test.py
77-
78-
More testing will be added to new widgets as they are brought online while further testing will be added to old widgets as the project matures.
79-
8070
# Contributions
8171

8272
Contributions for new widgets, documentation, tests, and resolving issues are welcomed.

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

setup.py.bak

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)