Skip to content

Commit

Permalink
remove more stuff from tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Mar 14, 2024
1 parent 1a0d2b2 commit 98e7785
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 28 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,20 @@ jobs:
python-version: "3.11"
cache: "pip"

- name: Install Tox
run: pip install tox

# fetch test durations
# NOTE: if the tests get poorly distributed, run this and commit the resulting `.test_durations` file to the `vyper-test-durations` repo.
# `TOXENV=fuzzing tox -r -- --store-durations -r aR tests/`
# NOTE: if the tests get poorly distributed, run this manually/locally and commit the resulting `.test_durations` file to the `vyper-test-durations` repo.
# `pytest -m "fuzzing" --store-durations -r aR tests/`
- name: Fetch test-durations
run: curl --location "https://raw.githubusercontent.com/vyperlang/vyper-test-durations/5982755ee8459f771f2e8622427c36494646e1dd/test_durations" -o .test_durations

- name: Run Tox
run: TOXENV=fuzzing tox -r -- --splits 60 --group ${{ matrix.group }} --splitting-algorithm least_duration -r aR tests/
- name: Run tests
run: pytest \
-m "fuzzing" \
--splits 60 \
--group ${{ matrix.group }} \
--splitting-algorithm least_duration \
-r aR \
tests/

- name: Upload Coverage
uses: codecov/codecov-action@v4
Expand Down Expand Up @@ -206,11 +209,8 @@ jobs:
python-version: "3.11"
cache: "pip"

- name: Install Tox
run: pip install tox

- name: Run Tox
run: TOXENV=memory tox -r
- name: Run tests
run: pytest --memorymock tests/

- name: Upload Coverage
uses: codecov/codecov-action@v4
Expand Down
16 changes: 0 additions & 16 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,3 @@ deps =
sphinx-copybutton
commands =
sphinx-build {posargs:-E} -b html docs dist/docs -n -q --color

[testenv:fuzzing]
basepython = python3
commands =
pytest -m fuzzing {posargs:tests/}
extras =
test
whitelist_externals = make

[testenv:memory]
basepython = python3
commands =
pytest --memorymock {posargs:tests/}
extras =
test
whitelist_externals = make

0 comments on commit 98e7785

Please sign in to comment.