Skip to content

Commit

Permalink
Execute tests with plain python3.
Browse files Browse the repository at this point in the history
Instead of relying on `pytest`, this change executes the tests directly.

PiperOrigin-RevId: 642317747
  • Loading branch information
kenjitoyama authored and copybara-github committed Jun 11, 2024
1 parent 8be4823 commit 9ebf03b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
python setup.py install
pip install .[testing]
- name: Test with pytest
- name: Run tests
run: |
pytest -n "$(grep -c ^processor /proc/cpuinfo)" android_env
# Find all test files, print their names and execute them in parallel
# with a maximum of 20 proccesses.
find . -type f -name "*_test.py" -print0 | xargs -t -0 -n1 -P 20 python3
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ testing = [
"gym",
"pillow",
"pytype",
"pytest-xdist",
]
acme = ["dm-acme"]
gym = ["gym"]
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
'attrs==20.3.0', # temporary pin to fix pytype issue.
'pillow',
'pytype',
'pytest-xdist',
'gym',
]

Expand Down

0 comments on commit 9ebf03b

Please sign in to comment.