Add faucet auth token to tests (#39) #118
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
name: "Devnet Examples" | |
on: | |
pull_request: | |
types: [labeled, opened, synchronize, reopened, auto_merge_enabled] | |
push: | |
branches: | |
- main | |
jobs: | |
run-devnet-examples: | |
runs-on: ubuntu-latest | |
env: | |
APTOS_FAUCET_URL: https://faucet.devnet.aptoslabs.com | |
APTOS_INDEXER_URL: https://api.devnet.aptoslabs.com/v1/graphql | |
APTOS_NODE_URL: https://fullnode.devnet.aptoslabs.com/v1 | |
FAUCET_AUTH_TOKEN: ${{ secrets.DEVNET_FAUCET_AUTH_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/python-setup | |
with: | |
pyproject_directory: . | |
- name: Run examples on devnet | |
uses: nick-fields/retry@v2 | |
with: | |
max_attempts: 1 | |
timeout_minutes: 20 | |
command: make examples |