Skip to content

Commit 6acc9b8

Browse files
Merge pull request #2 from Sensirion/create-gh-workflow
adding github workflow
2 parents 09d7376 + 49d575e commit 6acc9b8

File tree

8 files changed

+41
-180
lines changed

8 files changed

+41
-180
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
tags:
6+
- "^[0-9]+.[0-9]+.[0-9]+"
7+
8+
jobs:
9+
build_and_deploy:
10+
uses: sensirion/.github/.github/workflows/driver.python.pypi_publish.yml@main
11+
secrets:
12+
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
13+

.github/workflows/build-docs.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Publish Documentation
2+
on:
3+
push:
4+
branches:
5+
- master
6+
tags:
7+
- "^[0-9]+.[0-9]+.[0-9]+"
8+
9+
jobs:
10+
documentation:
11+
uses: sensirion/.github/.github/workflows/driver.python.documentation.yml@main
12+
with:
13+
build-python-version: 3.8

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Validate and Test Python Package
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
push:
7+
branches:
8+
- master
9+
10+
jobs:
11+
test:
12+
uses: sensirion/.github/.github/workflows/driver.python.test.yml@main

.gitlab-ci.yml

Lines changed: 0 additions & 135 deletions
This file was deleted.

ci/checkin_doc.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

ci/set_git_config.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

metadata.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# driver generation metadata
12
generator_version: 0.33.0
23
model_version: 1.0.1
34
dg_status:

tests/test_lps22.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from sensirion_i2c_lps22.commands import (OdrFrequency)
2222

2323

24-
pytestmark = pytest.mark.skipif(os.environ.get('NO_HW_TESTS', False))
24+
pytestmark = pytest.mark.needs_hardware
2525

2626

2727
@pytest.fixture
@@ -38,8 +38,7 @@ def sensor(channel_provider):
3838

3939
def test_whoami1(sensor):
4040
chip_id = sensor.whoami()
41-
print(f"chip_id: {chip_id}; "
42-
)
41+
print(f"chip_id: {chip_id}; ")
4342

4443

4544
def test_swreset1(sensor):

0 commit comments

Comments
 (0)