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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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


fuzzing:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion tests/integration/cli/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def test_run_when_script_errors(ape_cli, runner, project):

@skip_projects_except(["script"])
def test_run_interactive(ape_cli, runner, project):
result = runner.invoke(ape_cli, ["run", "--interactive"], input="exit\n")
scripts = [s for s in project.scripts_folder.glob("*.py") if s.name.startswith("error")]
result = runner.invoke(ape_cli, ["run", "--interactive", scripts[0].stem], input="exit\n")
assert result.exit_code == 0, result.output


Expand Down