diff --git a/.github/workflows/examples.yaml b/.github/workflows/examples.yaml index 0d3fd75..5e05bad 100644 --- a/.github/workflows/examples.yaml +++ b/.github/workflows/examples.yaml @@ -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: diff --git a/.github/workflows/testnet-examples.yaml b/.github/workflows/testnet-examples.yaml new file mode 100644 index 0000000..0eba97e --- /dev/null +++ b/.github/workflows/testnet-examples.yaml @@ -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