fix: non-aws devices sensors should be not implemented instead of none #107
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install pytest dependencies | |
run: pip install pytest pytest-md pytest-emoji | |
- name: developer mode install | |
run: pip install -e . | |
- uses: pavelzw/pytest-action@v2 | |
with: | |
emoji: false | |
verbose: false | |
job-summary: true | |
build: | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Gets semantic release info | |
id: semantic_release_info | |
uses: jossef/action-semantic-release-info@v3.0.0 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Update Version and Commit | |
if: ${{steps.semantic_release_info.outputs.version != ''}} | |
run: | | |
echo "Version: ${{steps.semantic_release_info.outputs.version}}" | |
sed -i "s/version = \".*\"/version = \"${{steps.semantic_release_info.outputs.version}}\"/g" pyproject.toml | |
git config --local user.email "dahl.brendan@gmail.com" | |
git config --local user.name "Brendan Dahl" | |
git add -A | |
git commit -m "chore: bumping version to ${{steps.semantic_release_info.outputs.version}}" | |
git tag ${{ steps.semantic_release_info.outputs.git_tag }} | |
- name: Push changes | |
if: ${{steps.semantic_release_info.outputs.version != ''}} | |
uses: ad-m/github-push-action@v0.8.0 | |
with: | |
github_token: ${{ github.token }} | |
tags: true | |
branch: ${{ github.ref }} | |
- name: Create GitHub Release | |
if: ${{steps.semantic_release_info.outputs.version != ''}} | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
tag_name: ${{ steps.semantic_release_info.outputs.git_tag }} | |
release_name: ${{ steps.semantic_release_info.outputs.git_tag }} | |
body: ${{ steps.semantic_release_info.outputs.notes }} | |
draft: false | |
prerelease: false | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Install pypa/build | |
run: >- | |
python -m | |
pip install | |
build | |
--user | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
python -m | |
build | |
--sdist | |
--wheel | |
--outdir dist/ | |
. | |
- name: Publish distribution 📦 to PyPI | |
if: ${{steps.semantic_release_info.outputs.version != ''}} | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |