Skip to content

Commit 850e4f1

Browse files
authored
Fix Documentation CD pipeline (#23)
1 parent 2b7f5ae commit 850e4f1

File tree

3 files changed

+24
-13
lines changed

3 files changed

+24
-13
lines changed

.github/workflows/docs-cd.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,21 @@ jobs:
2424
- name: Set up Python
2525
uses: actions/setup-python@v5
2626
with:
27-
python-version: '3.x'
27+
python-version: 3.13
28+
29+
- name: Cache Python dependencies
30+
uses: actions/cache@v3
31+
with:
32+
path: ~/.cache/pip
33+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
34+
restore-keys: |
35+
${{ runner.os }}-pip
2836
2937
- name: Install dependencies
3038
run: |
3139
python -m pip install --upgrade pip
3240
pip install -e .
41+
pip install -r requirements.txt
3342
pip install -r docs/requirements.txt
3443
3544
- name: Generate API stubs

docs/requirements.txt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
furo>=2024.8.6
2-
Sphinx>=7.2
3-
myst-parser>=2.0
4-
sphinx-autodoc-typehints>=2.2
5-
sphinx-autobuild==2024.8.25
6-
sphinx_rtd_theme==7.3.1
7-
8-
# Ensure imports succeed during autodoc
9-
paho-mqtt>=2.0
1+
furo==2025.7.19
2+
Sphinx==8.2.3
3+
myst-parser==4.0.1
4+
sphinx-autodoc-typehints==3.2.0
5+
sphinx-autobuild==2025.8.25
6+
sphinx_rtd_theme==3.0.2

pyproject.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ build-backend = "setuptools.build_meta"
66
name = "py-swarm-robot"
77
version = "0.1.0"
88
description = "A modular robot control library"
9-
authors = [{name = "Nuwan Jaliyagoda", email = "[email protected]"},{name = "Nuwan Jaliyagoda", email = "[email protected]"},{name = "Kavindu Prabhath Methpura", email = "[email protected]"}]
9+
authors = [
10+
{ name = "Nuwan Jaliyagoda", email = "[email protected]" },
11+
{ name = "Nuwan Jaliyagoda", email = "[email protected]" },
12+
{ name = "Kavindu Prabhath Methpura", email = "[email protected]" },
13+
]
1014
readme = "README.md"
11-
requires-python = ">=3.8"
12-
dependencies = []
15+
requires-python = ">=3.13"
16+
license = { file = "LICENSE" }
17+
dependencies = ["paho-mqtt"]
1318

1419
[tool.setuptools.packages.find]
1520
where = ["src"]

0 commit comments

Comments
 (0)