Skip to content

Commit

Permalink
[cicd] Add testnet examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnazario committed Aug 27, 2024
1 parent 5abbd43 commit 485f190
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ jobs:
APTOS_TEST_USE_EXISTING_NETWORK: true

steps:
- uses: actions/checkout@v3

- name: Checkout aptos-core
uses: actions/checkout@v3
with:
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/testnet-examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Testnet Examples"
on:
pull_request:
types: [labeled, opened, synchronize, reopened, auto_merge_enabled]
push:
branches:
- main

jobs:
run-python-examples:
runs-on: ubuntu-latest
env:
APTOS_FAUCET_URL: https://faucet.testnet.aptoslabs.com
APTOS_INDEXER_URL: https://api.testnet.aptoslabs.com/v1/graphql
APTOS_NODE_URL: https://fullnode.testnet.aptoslabs.com/v1
FAUCET_AUTH_TOKEN: ${{ secrets.TESTNET_FAUCET_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v3

- uses: ./.github/actions/python-setup
with:
pyproject_directory: .

- name: Run examples on testnet
uses: nick-fields/retry@v2
with:
max_attempts: 1
timeout_minutes: 20
command: make examples

0 comments on commit 485f190

Please sign in to comment.