Skip to content

Commit 7fdce7d

Browse files
authored
Merge pull request #27 from didx-xyz/YOMA-181-build-pipeline
Yoma 181 build pipeline
2 parents 708ac94 + 04bbe75 commit 7fdce7d

File tree

6 files changed

+51
-3
lines changed

6 files changed

+51
-3
lines changed

.github/workflows/main.yml renamed to .github/workflows/create-release-changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'CI'
1+
name: 'Create release and changelog'
22
on:
33
release:
44
types: [created]

.github/workflows/lint-black.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 'Run black linting'
2+
3+
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the main branch
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
PythonLinting:
15+
name: Python linting
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@master
19+
- name: Black Python linting
20+
uses: lgeiger/black-action@master
21+
with:
22+
args: . --check

.github/workflows/run-py-tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Run Python Tests
2+
on:
3+
release:
4+
types: [created]
5+
pull_request:
6+
branches:
7+
- staging
8+
9+
jobs:
10+
RunPytest:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Install Python 3
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.7
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install -r requirements.txt
22+
- name: Run tests with pytest
23+
run: pytest

aries_cloudcontroller/controllers/issuer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ async def issue_credential(self, cred_ex_id, comment, attributes):
138138
async def store_credential(self, cred_ex_id, credential_id: str = None):
139139
body = {}
140140
if credential_id:
141-
body['credential_id'] = credential_id
141+
body["credential_id"] = credential_id
142142
return await self.admin_POST(
143143
f"{self.base_url}/records/{cred_ex_id}/store", json_data=body
144144
)

aries_cloudcontroller/controllers/messaging.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@ async def trust_ping(self, connection_id: str, comment_msg: str = None):
2727
f"/connections/{connection_id}/send-ping", {"comment": comment_msg}
2828
)
2929
else:
30-
response = await self.admin_POST(f"/connections/{connection_id}/send-ping", {})
30+
response = await self.admin_POST(
31+
f"/connections/{connection_id}/send-ping", {}
32+
)
3133
return response

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
aiohttp~=3.7.3
22
asyncio
3+
black
34
prompt_toolkit
45
pygments
56
PyPubSub

0 commit comments

Comments
 (0)