From f47ab4d90b94960058b2d59a9b98800d83aa0ea4 Mon Sep 17 00:00:00 2001 From: Platon Floria Date: Fri, 3 May 2024 11:14:03 +0200 Subject: [PATCH] chore: add Makefile --- .github/workflows/run-pytest.yml | 2 +- Makefile | 2 ++ run_tests | 9 --------- 3 files changed, 3 insertions(+), 10 deletions(-) create mode 100644 Makefile delete mode 100755 run_tests diff --git a/.github/workflows/run-pytest.yml b/.github/workflows/run-pytest.yml index 5640ab61b..1d2273756 100644 --- a/.github/workflows/run-pytest.yml +++ b/.github/workflows/run-pytest.yml @@ -42,7 +42,7 @@ jobs: echo ETHERSCAN_TOKEN=$ETHERSCAN_TOKEN >> .env echo DEFAULT_MIN_PROFIT_BNT=$DEFAULT_MIN_PROFIT_BNT >> .env echo ETH_PRIVATE_KEY_BE_CAREFUL=$ETH_PRIVATE_KEY_BE_CAREFUL >> .env - poetry run ./run_tests + make test env: TENDERLY_FORK: '${{ secrets.TENDERLY_FORK }}' WEB3_ALCHEMY_PROJECT_ID: '${{ secrets.WEB3_ALCHEMY_PROJECT_ID }}' diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..aee4be7d5 --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +test: + poetry run pytest fastlane_bot/tests -v $1 diff --git a/run_tests b/run_tests deleted file mode 100755 index fb03a7325..000000000 --- a/run_tests +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -cd "$(dirname "$0")" - -pwd - -pytest fastlane_bot/tests -v $1 - - -