Skip to content

Commit 7479d7f

Browse files
committed
Merge branch 'dev' into staging
2 parents 9e3e832 + c6cb33e commit 7479d7f

32 files changed

+82
-56
lines changed

.github/workflows/build-publish-pypi.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will build and publish the package to PyPI upon push or merge to main branch
2-
# and then create a GitHub release based on latest release tag
3-
41
name: Build and Release
52

63
on:
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Create Release Tag
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
8+
jobs:
9+
build-and-publish:
10+
name: Create Release Tag
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
with:
16+
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
17+
- name: Get Current Version
18+
run: echo -n "current_version=$(grep "version" setup.cfg | cut -d '=' -f2 | tr -d ' \t\n\r')" >> $GITHUB_ENV
19+
- name: Create Release Tag
20+
env:
21+
commit_name: bot-edgepi
22+
commit_email: [email protected]
23+
username: bot-edgepi
24+
run: |
25+
git config user.name ${{ env.commit_name }}
26+
git config user.email ${{ env.commit_email }}
27+
git tag -a release/v${{ env.current_version }} -m "tag release version ${{ env.current_version }}"
28+
git push origin release/v${{ env.current_version }}
Lines changed: 34 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
# name: Python Integration Test
1+
name: Python Integration Test
22

3-
# on:
4-
# push:
5-
# branches:
3+
on:
4+
push:
5+
branches:
6+
- todo # enable this workflow once the issue with installing the server is resolved
67
# - dev
78
# - staging
89
# - main
@@ -16,33 +17,33 @@
1617
# paths-ignore:
1718
# - version
1819

19-
# jobs:
20-
# test:
21-
# name: Integration Tests
22-
# runs-on: ubuntu-latest
23-
# strategy:
24-
# fail-fast: false
25-
# matrix:
26-
# python-version: ["3.9"]
20+
jobs:
21+
test:
22+
name: Integration Tests
23+
runs-on: ubuntu-latest
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
python-version: ["3.9"]
2728

28-
# steps:
29-
# - name: Checkout
30-
# if: ${{ github.event_name == 'pull_request'}}
31-
# uses: actions/checkout@v3
32-
# with:
33-
# ref: ${{ github.head_ref }}
34-
# - name: Checkout
35-
# if: ${{ github.event_name == 'push'}}
36-
# uses: actions/checkout@v3
37-
# with:
38-
# ref: ${{ github.ref_name }}
39-
# - name: Install Dependencies
40-
# run: |
41-
# python -m pip install --upgrade pip
42-
# python -m venv venv_test
43-
# source venv_test/bin/activate
44-
# python -m pip install -r requirements_test.txt
45-
# - name: Test with pytest
46-
# run: |
47-
# source venv_test/bin/activate
48-
# pytest ./tests/integration -vvs
29+
steps:
30+
- name: Checkout
31+
if: ${{ github.event_name == 'pull_request'}}
32+
uses: actions/checkout@v3
33+
with:
34+
ref: ${{ github.head_ref }}
35+
- name: Checkout
36+
if: ${{ github.event_name == 'push'}}
37+
uses: actions/checkout@v3
38+
with:
39+
ref: ${{ github.ref_name }}
40+
- name: Install Dependencies
41+
run: |
42+
python -m pip install --upgrade pip
43+
python -m venv venv_test
44+
source venv_test/bin/activate
45+
python -m pip install -r requirements_test.txt
46+
- name: Test with pytest
47+
run: |
48+
source venv_test/bin/activate
49+
pytest ./tests/integration -vvs

client_services/adc/client_adc_service.py renamed to edgepi_rpc_client/adc/client_adc_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from util.helpers import (
88
filter_arg_values, create_config_request_from_args, get_server_response
99
)
10-
from client_services.adc.adc_pb_enums import (
10+
from edgepi_rpc_client.adc.adc_pb_enums import (
1111
AnalogIn, ConvMode, ADC1DataRate, ADC2DataRate, FilterMode, ADCNum, DiffMode
1212
)
1313

client_services/dac/client_dac_service.py renamed to edgepi_rpc_client/dac/client_dac_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
from edgepirpc.protos import dac_pb2 as dac_pb
66
from client_rpc_channel.client_rpc_channel import ClientRpcChannel
7-
from client_services.dac.dac_pb_enums import DACChannel
7+
from edgepi_rpc_client.dac.dac_pb_enums import DACChannel
88
from util.helpers import get_server_response
99

1010
# pylint: disable=no-member

0 commit comments

Comments
 (0)