Skip to content

Commit

Permalink
Merge pull request #3 from Sensirion/create-gh-workflow
Browse files Browse the repository at this point in the history
adding github workflow
  • Loading branch information
Sensirion-Bot authored May 13, 2024
2 parents a9b715a + 9fec7bd commit 97cea7a
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 99 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
on:
push:
branches:
- master
tags:
- "^[0-9]+.[0-9]+.[0-9]+"

jobs:
build_and_deploy:
uses: sensirion/.github/.github/workflows/driver.python.pypi_publish.yml@main
secrets:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

13 changes: 13 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Publish Documentation
on:
push:
branches:
- master
tags:
- "^[0-9]+.[0-9]+.[0-9]+"

jobs:
documentation:
uses: sensirion/.github/.github/workflows/driver.python.documentation.yml@main
with:
build-python-version: 3.8
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Validate and Test Python Package
on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
test:
uses: sensirion/.github/.github/workflows/driver.python.test.yml@main
with:
hw-test-flag: needs_device
80 changes: 0 additions & 80 deletions .gitlab-ci.yml

This file was deleted.

16 changes: 0 additions & 16 deletions ci/set_git_config.sh

This file was deleted.

2 changes: 1 addition & 1 deletion sensirion_i2c_sgp4x/sgp40/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from sensirion_i2c_driver import I2cDevice

from .commands import Sgp40I2cCmdMeasureRawSignal, Sgp40I2cCmdExecuteSelfTest, Sgp40I2cCmdTurnHeaterOff,\
from .commands import Sgp40I2cCmdMeasureRawSignal, Sgp40I2cCmdExecuteSelfTest, Sgp40I2cCmdTurnHeaterOff, \
Sgp40I2cCmdGetSerialNumber


Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
extras_require = {
'test': [
'flake8~=3.7.8',
'pytest~=3.5.0',
'pytest-cov~=2.5.1',
'pytest~=6.2.5',
'pytest-cov~=3.0.0',
'sensirion-shdlc-sensorbridge~=0.1.1'
],
'docs': [
Expand Down

0 comments on commit 97cea7a

Please sign in to comment.