From c4f618f6ee928c8fd6b594b0283d7e46754c25f8 Mon Sep 17 00:00:00 2001 From: Roman Agureev Date: Fri, 31 May 2024 16:49:19 +0300 Subject: [PATCH] ci: changes --- .github/workflows/forked.yaml | 3 +++ .github/workflows/unitary.yaml | 3 +++ .pre-commit-config.yaml | 2 +- scripts/redeploy.py | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/forked.yaml b/.github/workflows/forked.yaml index 212a0e0..5e69000 100644 --- a/.github/workflows/forked.yaml +++ b/.github/workflows/forked.yaml @@ -38,5 +38,8 @@ jobs: - name: Install Requirements run: pip install -r requirements.txt + - name: Run node + run: npx hardhat node --fork https://mainnet.infura.io/v3/$WEB3_INFURA_PROJECT_ID + - name: Run Tests run: brownie test tests/forked/ --network mainnet-fork -x diff --git a/.github/workflows/unitary.yaml b/.github/workflows/unitary.yaml index aab2da8..d56a02b 100644 --- a/.github/workflows/unitary.yaml +++ b/.github/workflows/unitary.yaml @@ -38,5 +38,8 @@ jobs: - name: Install Requirements run: pip install -r requirements.txt + - name: Run node + run: npx hardhat node + - name: Run Tests run: brownie test -x --ignore=tests/forked/ diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 91365be..02ab6dc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: hooks: - id: black - repo: https://github.com/PyCQA/flake8 - rev: 3.9.2 + rev: 5.0.4 hooks: - id: flake8 - repo: https://github.com/pre-commit/mirrors-isort diff --git a/scripts/redeploy.py b/scripts/redeploy.py index a6b6bee..767416c 100644 --- a/scripts/redeploy.py +++ b/scripts/redeploy.py @@ -33,4 +33,4 @@ def main(): "Contract instance will be created and destroyed at:", accounts.at(sender, force=True).get_deployment_address(0), ) - print(f"Then submit the following raw transaction:\n\n'{serialized}") + print(f"Then submit the following raw transaction: \n\n'{serialized}")