Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: use x-dist in tests #974

Merged
merged 3 commits into from Aug 12, 2022
Merged

Conversation

antazoey
Copy link
Contributor

What I did

  • Speeds up test runs by utilizing x-dist
  • Fixes warnings from coverage
  • Fixes flakey script test

How I did it

How to verify it

Checklist

  • All changes are completed
  • New test cases have been added
  • Documentation has been updated

@antazoey antazoey changed the title Test/jules/x dist test: use x-dist in tests Aug 12, 2022
@antazoey
Copy link
Contributor Author

The tests run more than 3x faster in CI and 10x faster locally (For me) from this PR!

No more long waits!!! Way less build times in GH. Yay and yay!

@@ -74,7 +74,7 @@ jobs:
pip install .[test]

- name: Run Tests
run: pytest -m "not fuzzing" -s --cov
run: pytest -m "not fuzzing" -s --cov=src -n auto
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought github actions only executes on single core? so this is kind of surprising

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ape-hardhat has been doing this all along too

@antazoey antazoey enabled auto-merge (squash) August 12, 2022 18:11
@antazoey antazoey merged commit e33d2ca into ApeWorX:main Aug 12, 2022
@antazoey antazoey deleted the test/jules/x-dist branch August 12, 2022 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants