Skip to content

Commit

Permalink
feat: uAgent almanac registrations (#187)
Browse files Browse the repository at this point in the history
Co-authored-by: Amit Solanki <[email protected]>
  • Loading branch information
bryanchriswhite and manjeet-fetchai authored Dec 19, 2022
1 parent 2a180d7 commit 60c798b
Show file tree
Hide file tree
Showing 23 changed files with 2,460 additions and 137 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,14 @@ jobs:
shell: bash
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
token: ${{ secrets.GH_ACCESS_TOKEN }}

- uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Update
run: sudo apt update
- name: Install OS dependencies
Expand All @@ -30,4 +35,4 @@ jobs:
- name: Install NodeJS dependencies
run: pipenv run yarn install
- name: Run style checks
run: pipenv run yarn pylint-checks
run: pipenv run yarn pylint-checks
7 changes: 3 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
token: ${{ secrets.GH_ACCESS_TOKEN }}

- name: Update
run: sudo apt update
- name: Install OS dependencies
run: sudo apt install -y python3-dev nodejs

- uses: actions/checkout@v3
with:
submodules: recursive

- name: Install NodeJS dependencies
run: yarn install

Expand Down Expand Up @@ -52,4 +49,6 @@ jobs:
run: pipenv run python -m unittest discover -s ./tests/unit

- name: Run end-to-end tests
env:
GITHUB_AUTHORIZATION_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
run: pipenv run python -m unittest discover -s ./tests/e2e
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@
path = subql
url = https://github.com/fetchai/subql
branch = main
[submodule "uagents"]
path = uagents
url = https://github.com/fetchai/uagents
branch = main
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ click = "*"

[dev-packages]
pytest = "*"
uagents = {path = "./uagents", editable = true}
black = "*"
isort = "*"
flake8 = "*"
Expand Down
1,311 changes: 1,217 additions & 94 deletions Pipfile.lock

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion docker/api.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ COPY --from=builder /build/node_modules /app/node_modules
COPY --from=builder /build/packages/common /app/node_modules/@subql/common
COPY --from=builder /build/packages/utils /app/node_modules/@subql/utils

ENTRYPOINT ["/sbin/tini", "--", "yarn", "start:prod"]
COPY ./scripts/api-entrypoint.sh /entrypoint.sh
ENTRYPOINT /entrypoint.sh
Loading

0 comments on commit 60c798b

Please sign in to comment.