diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index d2a1e69..c745ccc 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -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" \ No newline at end of file diff --git a/.github/workflows/linuxci.yml b/.github/workflows/linuxci.yml new file mode 100644 index 0000000..e27f1f6 --- /dev/null +++ b/.github/workflows/linuxci.yml @@ -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" + diff --git a/README.md b/README.md index 92c70a1..96435e0 100644 --- a/README.md +++ b/README.md @@ -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.