diff --git a/.deepsource.toml b/.deepsource.toml index 8dc1a93..6e73789 100644 --- a/.deepsource.toml +++ b/.deepsource.toml @@ -1,4 +1,11 @@ version = 1 +exclude_patterns = [ + "lib/bme68x/*", + "lib/bsec3210/*", + "lib/cube/*", + "lib/fat/*" +] + [[analyzers]] name = "cxx" \ No newline at end of file diff --git a/.github/workflows/testbuildrelease.yml b/.github/workflows/testbuildrelease.yml index 81c39e6..5fe81e6 100644 --- a/.github/workflows/testbuildrelease.yml +++ b/.github/workflows/testbuildrelease.yml @@ -184,20 +184,6 @@ jobs: pip install --upgrade platformio pio pkg install --environment dummy - # - name: Install STM32CubeWL - # uses: actions/checkout@v4 - # with: - # repository: STMicroelectronics/STM32CubeWL - # path: temp/framework-stm32cubewl - # submodules: true - - # - name: Add stm32wle to PlatformIO platforms - # run: | - # cp -f .github/workflows/platform.json /home/runner/.platformio/platforms/ststm32/platform.json - # cp -r temp/framework-stm32cubewl /home/runner/.platformio/packages/framework-stm32cubewl - # cp -f .github/workflows/package.json /home/runner/.platformio/packages/framework-stm32cubewl/package.json - # cp /home/runner/.platformio/packages/framework-stm32cubewl/Utilities/misc/stm32_systime_if_template.h /home/runner/.platformio/packages/framework-stm32cubewl/Utilities/misc/stm32_systime_if.h - - name: Check PlatformIO run: | pio system info @@ -218,52 +204,7 @@ jobs: run: | pio run -t compiledb + # cloud build is currently not working... # - name: Build # run: | # pio run -e production - - - name: Collect coverage into XML report - run: | - gcovr --sonarqube --gcov-ignore-parse-errors > coverage.xml - - - name: Run sonar-scanner - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - run: | - sonar-scanner \ - --define sonar.projectKey=Strooom_BME688-ML-v1-SW \ - --define sonar.organization=strooom \ - --define sonar.coverageReportPaths=coverage.xml - - # - name: Attach Binary to Workflow run - # id: attachbinarytoworkflowrun - # uses: actions/upload-artifact@v4 - # with: - # name: ${{ steps.selectversion.outputs.buildversionfilename }}.bin - # path: .pio/build/production/firmware.bin - # if-no-files-found: error - - # - name: Release when on main branch - # id: createrelease - # uses: actions/create-release@v1 - # if: ${{ steps.versioninfo.outputs.branchname == 'main'}} - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # tag_name: ${{ steps.selectversion.outputs.buildversion }} - # release_name: Release ${{ steps.selectversion.outputs.buildversion }} - # draft: false - # prerelease: false - - # - name: Attach Binary to Release - # id: attachbinarytorelease - # uses: actions/upload-release-asset@v1 - # if: ${{ steps.versioninfo.outputs.branchname == 'main'}} - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # upload_url: ${{ steps.createrelease.outputs.upload_url }} - # asset_path: .pio/build/production/firmware.bin - # asset_name: ${{ steps.selectversion.outputs.buildversionfilename }}.bin - # asset_content_type: application/octet-stream \ No newline at end of file diff --git a/README.md b/README.md index 4919810..9aa2137 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,13 @@ ![workflow](https://github.com/strooom/BME688-ML-v1-SW/actions/workflows/testbuildrelease.yml/badge.svg) [![codecov](https://codecov.io/gh/Strooom/BME688-ML-v1-SW/branch/develop/graph/badge.svg?token=1YU44QFM6B)](https://codecov.io/gh/Strooom/BME688-ML-v1-SW) [![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC_BY--NC--SA_4.0-lightgrey.svg)](https://creativecommons.org/licenses/by-nc-sa/4.0/) -[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=strooom_bme68x-ml-sw&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=strooom_bme68x-ml-sw) - +[![DeepSource](https://app.deepsource.com/gh/Strooom/BME688-ML-SW.svg/?label=active+issues&show_trend=true&token=zlNcnPfKz-hS2mY2oRJuvLvB)](https://app.deepsource.com/gh/Strooom/BME688-ML-SW/) +[![DeepSource](https://app.deepsource.com/gh/Strooom/BME688-ML-SW.svg/?label=code+coverage&show_trend=true&token=zlNcnPfKz-hS2mY2oRJuvLvB)](https://app.deepsource.com/gh/Strooom/BME688-ML-SW/) # Firmware for the BME688-ML PCB This repository will hold the firmware for a MachineLearning application with the BME688 sensor. +The purpose is to build a smart sensor which can be trained by Bosch AI Studio to detect gases. Both the training and the inference can be done on the sensor. The sensor interfaces to a 'parent' device using the QWIIC I2C. The hardware can be found here : https://github.com/Strooom/BME688-ML-V1-PCB