Check sepolia-testnet profits #78
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
# Check key balances on sepolia-testnet to determine profits | |
# | |
name: '[persist] Persist sepolia profits' | |
run-name: Check sepolia-testnet profits | |
on: | |
schedule: | |
- cron: '*/60 * * * *' | |
workflow_dispatch: | |
jobs: | |
run-check: | |
runs-on: [self-hosted, Linux, X64, ten-test-gh-runner-02] | |
steps: | |
- name: 'Check out ten-test' | |
uses: actions/checkout@v3 | |
with: | |
path: ./ten-test | |
- name: 'Check out go-ten code' | |
uses: actions/checkout@v3 | |
with: | |
repository: ten-protocol/go-ten | |
path: ./go-ten | |
ref: 'releases/v0.28' | |
- name: 'Build required artifacts for running tests' | |
run: | | |
cd ${{ github.workspace }}/ten-test | |
./get_artifacts.sh | |
ls -l ${{ github.workspace }}/ten-test/artifacts | |
- name: 'Run funds check' | |
run: | | |
cd ${{ github.workspace }}/ten-test/admin | |
/usr/local/bin/pysys.py run -m ten.sepolia check_profits | |
- name: 'Upload performance output' | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: profits-artifact | |
path: | | |
${{ github.workspace }}/ten-test/admin/check_profits/Output/linux/profits.pdf | |
${{ github.workspace }}/ten-test/admin/check_profits/Output/linux/profits.log | |
if-no-files-found: ignore | |
retention-days: 1 |