-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* make single branch for particular changes * test * add makefile * add makefile * add makefile * add makefile * add makefile * add makefile * add more commands * remove flake8 * change clean command * test * fix scripts for policy * return data back * adding test runner * update readme file * move repo to org
- Loading branch information
Showing
14 changed files
with
2,905 additions
and
23 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
.vscode | ||
__pycache__ | ||
.pytest_cache | ||
allure-report | ||
allure-results |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
repos: | ||
- repo: https://github.com/novasamatech/pre-commit-hooks | ||
rev: a0eca3e206a0ee7d824489540565ce280c1d2da9 | ||
hooks: | ||
- id: check-chains-json | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-json |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Variables | ||
PYTHON := python | ||
PYTHON_VERSION := 3.11 | ||
VENV ?= .venv | ||
|
||
THREADS = 4 | ||
RE_RUNS = 2 | ||
RE_RUN_DELAY = 15 | ||
ALLURE_DIR = allure-results | ||
TEST_RUN = $(VENV)/bin/python -m pytest --rootdir . --alluredir=$(ALLURE_DIR) -n $(THREADS) -v --reruns $(RE_RUNS) --reruns-delay $(RE_RUN_DELAY) | ||
|
||
CHAINS_FILES=\ | ||
chains | ||
|
||
# Targets | ||
.PHONY: test clean lint init venv requirements generate_network_list test-all | ||
|
||
clean: | ||
rm -rf *.pyc __pycache__/ **/__pycache__/ | ||
|
||
init: venv .create-venv requirements .install-pre-commit | ||
|
||
generate_network_list: | ||
$(VENV)/bin/python ./scripts/generate_network_list.py | ||
|
||
generate_dapp_list: | ||
$(VENV)/bin/python ./scripts/generate_dapps_list.py | ||
|
||
generate_test_file: | ||
$(VENV)/bin/python ./scripts/update_test_data.py | ||
|
||
venv: | ||
$(PYTHON) -m venv .venv | ||
|
||
.create-venv: | ||
test -d $(VENV) || python$(PYTHON_VERSION) -m venv $(VENV) | ||
$(VENV)/bin/python -m pip install --upgrade pip | ||
$(VENV)/bin/python -m pip install poetry | ||
|
||
.install-pre-commit: | ||
$(VENV)/bin/poetry run pre-commit install | ||
|
||
requirements: | ||
$(VENV)/bin/poetry install | ||
. .venv/bin/activate | ||
|
||
test-all: test-nodes-availability test-networks-precision test-network-chain-id test-network-prefix test-eth-availability test-new-assets | ||
|
||
test-nodes-availability: | ||
$(TEST_RUN) "./tests/test_nodes_availability.py" | ||
|
||
test-networks-precision: | ||
$(TEST_RUN) "./tests/test_network_parameters.py::TestPrecision" | ||
|
||
test-network-chain-id: | ||
$(TEST_RUN) "./tests/test_network_parameters.py::TestChainId" | ||
|
||
test-network-prefix: | ||
$(TEST_RUN) "./tests/test_network_parameters.py::TestNetworkPrefix" | ||
|
||
test-eth-availability: | ||
$(TEST_RUN) "./tests/test_eth_nodes_availability.py" | ||
|
||
test-new-assets: | ||
$(TEST_RUN) "./tests/test_check_new_assets.py" | ||
|
||
allure: | ||
allure serve $(ALLURE_DIR) |
Oops, something went wrong.