-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include permissions account in instructions (#42)
* delete oracle file from git * include permissions account in instructions update tests download latest oracle for tests * bump app version, update poetry version * update solana version * add pydoc * run poetry lock * linting * remove ecr build * remove useless if-else
- Loading branch information
Showing
16 changed files
with
1,081 additions
and
1,168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,41 +20,9 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/python-poetry | ||
- run: sh -c "$(curl -sSfL https://release.solana.com/v1.10.35/install)" | ||
- run: sh -c "$(curl -sSfL https://release.solana.com/v1.18.17/install)" | ||
- run: echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH | ||
- run: poetry run pytest | ||
env: | ||
TEST_MODE: "1" | ||
DEV_MODE: "1" | ||
build-and-push-ecr: | ||
runs-on: ubuntu-latest | ||
needs: [run-tests] | ||
permissions: | ||
id-token: write | ||
contents: read | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: aws-actions/[email protected] | ||
with: | ||
role-to-assume: arn:aws:iam::192824654885:role/github-actions-ecr | ||
aws-region: eu-west-2 | ||
- uses: docker/login-action@v2 | ||
with: | ||
registry: public.ecr.aws | ||
env: | ||
AWS_REGION: us-east-1 | ||
- run: docker context create builders | ||
- uses: docker/setup-buildx-action@v2 | ||
with: | ||
version: latest | ||
endpoint: builders | ||
- uses: haya14busa/action-cond@v1 | ||
id: image_tag | ||
with: | ||
cond: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
if_true: ${{ github.ref_name }} | ||
if_false: ${{ github.sha }} | ||
- uses: docker/build-push-action@v2 | ||
with: | ||
push: true | ||
tags: public.ecr.aws/pyth-network/${{ github.event.repository.name }}:${{ steps.image_tag.outputs.value }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
lint: | ||
poetry run isort --profile=black program_admin/ tests/ | ||
poetry run black program_admin/ tests/ | ||
poetry run pyright program_admin/ tests/ | ||
poetry run pyflakes program_admin/ tests/ | ||
|
||
install: | ||
poetry install | ||
|
||
test: | ||
poetry run pytest |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
program_admin/program_authority_escrow/instructions/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
from .accept import AcceptAccounts, accept | ||
from .propose import ProposeAccounts, propose | ||
from .revert import RevertAccounts, revert | ||
|
||
assert AcceptAccounts | ||
assert accept | ||
assert ProposeAccounts | ||
assert propose | ||
assert RevertAccounts | ||
assert revert |
Oops, something went wrong.