Skip to content

Commit

Permalink
CI Updates (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
themoosman authored Jun 21, 2024
1 parent 822dc94 commit 8ff16fd
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@ on: [push, pull_request]
jobs:
flake8-lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
name: Lint
steps:
- name: Check out source repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v1
uses: actions/setup-python@v5
with:
python-version: "3.8"
python-version: ${{ matrix.python-version }}
architecture: x64
- name: flake8 Lint
uses: py-actions/flake8@v1
uses: py-actions/flake8@v2
with:
ignore: "F401"
max-line-length: "120"
max-line-length: "120"
29 changes: 29 additions & 0 deletions .github/workflows/linuxci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Linux CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Python environment report
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
ignore: "F401"
max-line-length: "120"

5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
![](https://github.com/themoosman/weewx-ambientweatherapi-json/workflows/flake8%20Lint/badge.svg)
# weewx AmbientWeather API Driver

![Version](https://img.shields.io/github/v/release/themoosman/weewx-ambientweatherapi-json?sort=semver)
[![Linux CI](https://github.com/themoosman/weewx-ambientweatherapi-json/workflows/Linux%20CI/badge.svg)](https://github.com/themoosman/weewx-ambientweatherapi-json/actions?query=workflow%3A%22Linux+CI%22)
![Lint](https://github.com/themoosman/weewx-ambientweatherapi-json/workflows/flake8%20Lint/badge.svg)

This is an AmbientWeather API driver for weewx. This will work with any AmbientWeather stations that uploads data to ambientweather.net. I decided to go this route as the only way to get access to some infomration is via the Ambinent Weather API. Since I have a number of external temperature sensors I wrote this driver so I could pull that data into weewx.

This driver uses the [AmbientAPI](https://github.com/avryhof/ambient_api) Python3 package to make the API calls.
Expand Down

0 comments on commit 8ff16fd

Please sign in to comment.