Skip to content

Commit 7120225

Browse files
Merge pull request #28 from Botts-Innovative-Research/mqtt
MQTT Obs and Commands basics
2 parents bee308f + c269550 commit 7120225

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+5456
-1352
lines changed

.github/workflows/docs_pages.yaml

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,33 @@
11
name: Docs2Pages
2-
on: [push, pull_request, workflow_dispatch]
2+
on: [ push, pull_request, workflow_dispatch ]
33
permissions:
44
contents: write
55

66
jobs:
77
build-docs:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v3
12-
- uses: actions/setup-python@v5
13-
with:
14-
python-version: '3.12'
10+
- name: Checkout
11+
uses: actions/checkout@v5
1512

16-
- name: Install Poetry
17-
uses: snok/install-poetry@v1
13+
- name: Install uv
14+
uses: astral-sh/setup-uv@v6
1815

19-
- name: Install dependencies
20-
run: |
21-
poetry install --with dev
16+
- name: Install Python 3.13
17+
run: uv python install 3.13
2218

23-
- name: Sphinx build
24-
run: |
25-
poetry run sphinx-build -b html docs/source docs/build/html
19+
- name: Install dependencies
20+
run: uv sync --all-extras
2621

27-
- name: Deploy documentation
28-
uses: peaceiris/actions-gh-pages@v4
29-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
30-
with:
31-
publish_branch: gh-pages
32-
github_token: ${{ secrets.GITHUB_TOKEN }}
33-
publish_dir: ./docs/build/html
34-
force_orphan: true
22+
- name: Sphinx build
23+
run: |
24+
uv run sphinx-build -b html docs/source docs/build/html
25+
26+
- name: Deploy documentation
27+
uses: peaceiris/actions-gh-pages@v4
28+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
29+
with:
30+
publish_branch: gh-pages
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./docs/build/html
33+
force_orphan: true

.github/workflows/linting.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ jobs:
44
lint:
55
runs-on: ubuntu-latest
66
steps:
7-
- uses: actions/checkout@v3
8-
- uses: actions/setup-python@v5
9-
with:
10-
python-version: '3.12'
7+
- name: Checkout
8+
uses: actions/checkout@v5
119

12-
- name: Install Poetry
13-
uses: snok/install-poetry@v1
10+
- name: Install uv
11+
uses: astral-sh/setup-uv@v6
12+
13+
- name: Install Python 3.13
14+
run: uv python install 3.13
1415

1516
- name: Install dependencies
16-
run: |
17-
poetry install --with dev
17+
run: uv sync --all-extras
18+
1819
- name: Lint
1920
run: |
20-
poetry run flake8
21+
uv run flake8 src/oshconnect

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: publish.yml
2+
on:
3+
push:
4+
tags:
5+
# publishes any tag starting with 'v' as in 'v1.0'
6+
- v*
7+
8+
jobs:
9+
run:
10+
runs-on: ubuntu-latest
11+
environment:
12+
name: publish
13+
permissions:
14+
id-token: write
15+
contents: read
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v5
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v6
21+
- name: Install Python 3.13
22+
run: uv python install 3.13
23+
- name: Build
24+
run: uv build
25+
# Need to add a test that verifies the builds
26+
- name: Publish
27+
run: uv publish

docs/source/tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ datastream schemas.
156156
A TimeSchema is required to be the first field in the DataRecordSchema for OSH.
157157

158158
Inserting an Observation into and OpenSensorHub Node
159-
-----------------------------------------
159+
-----------------------------------------------------
160160
Upon successfully adding a new datastream to a system, it is now possible to send observation data to the node.
161161

162162
.. code-block:: python

oshconnect/control.py

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

oshconnect/core_datamodels.py

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

0 commit comments

Comments
 (0)