From 788bccb4879a87b700ca3198960c7ad3c544c91a Mon Sep 17 00:00:00 2001 From: Tyrone Johnson Date: Thu, 9 Jan 2025 00:40:56 +0300 Subject: [PATCH] try to fix cron test --- .github/workflows/cron_amm_test.yml | 37 ++++------------------------- 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/.github/workflows/cron_amm_test.yml b/.github/workflows/cron_amm_test.yml index d09ac0273..37bf06282 100644 --- a/.github/workflows/cron_amm_test.yml +++ b/.github/workflows/cron_amm_test.yml @@ -14,39 +14,9 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [18.x] steps: - - uses: actions/checkout@v4 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - - name: Setup node.js - uses: actions/setup-node@v1 - with: - node-version: "14.x" - - name: Cache node modules - uses: actions/cache@v4 - env: - cache-name: cache-node-modules - with: - # npm cache files are stored in `~/.npm` on Linux/macOS - path: ~/.npm - key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-build-${{ env.cache-name }}- - ${{ runner.os }}-build- - ${{ runner.os }}- - - - name: Cache compiler installations - uses: actions/cache@v4 - with: - path: | - ~/.solcx - ~/.vvm - key: ${{ runner.os }}-compiler-cache - # - name: Set pip cache directory path # id: pip-cache-dir-path # run: | @@ -64,7 +34,10 @@ jobs: # ${{ runner.os }}-pip- - name: Install python dependencies - run: pip install -r requirements.txt && brownie pm install OpenZeppelin/openzeppelin-contracts@4.9.5 + run: | + pip install --upgrade pip setuptools wheel + pip install PyYAML==5.4.1 # Install PyYAML first + pip install -r requirements.txt && brownie pm install OpenZeppelin/openzeppelin-contracts@4.9.5 - name: Withdraw Fees run: echo $REWARDS_CRON && brownie networks import network-config.yaml true && brownie run scripts/contractInteraction/rewards_cron_amm.py --network=rsk-mainnet