Skip to content

Commit da714f4

Browse files
Merge pull request #1 from Sensirion/create-gh-workflow
adding github workflow
2 parents b1a7227 + dc7c586 commit da714f4

File tree

6 files changed

+42
-91
lines changed

6 files changed

+42
-91
lines changed

Diff for: .github/workflows/build-and-publish.yml

+13
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+

Diff for: .github/workflows/build-docs.yml

+13
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

Diff for: .github/workflows/test.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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
13+
with:
14+
hw-test-flag: needs_device

Diff for: .gitlab-ci.yml

-73
This file was deleted.

Diff for: ci/set_git_config.sh

-16
This file was deleted.

Diff for: setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
'test': [
4343
'flake8~=3.9.2',
4444
'mock~=3.0.0',
45-
'pytest~=4.6.11',
46-
'pytest-cov~=2.6.0',
45+
'pytest~=6.2.5',
46+
'pytest-cov~=3.0.0',
4747
'sensirion-shdlc-sensorbridge~=0.1.1',
4848
],
4949
},

0 commit comments

Comments
 (0)