Skip to content

Commit 4b779d9

Browse files
committed
Test framework: pytest -> unittest
1 parent 7710d36 commit 4b779d9

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.github/workflows/python-package.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,11 @@ jobs:
2929
- name: Install build dependencies
3030
run: |
3131
python -m pip install --upgrade pip
32-
python -m pip install build wheel setuptools pytest
33-
- name: Build and install package Python 3.10 and above
32+
python -m pip install build wheel setuptools
33+
- name: Build and install package
3434
run: |
3535
output=$(python -m build --wheel)
36-
if [[ "${{ matrix.python-version }}" == "3.12" ]]; then
37-
# Exclude envpool when testing with Python 3.12
38-
pip install dist/${output##* }[test]
39-
pip install gymnasium ray gpjax plotly pandas tensorflow-datasets grain brax plotly pandas
40-
else
41-
pip install dist/${output##* }[full,test]
42-
fi
43-
- name: Test with pytest Python 3.10 and above
36+
pip install dist/${output##* }[test]
37+
- name: Test with unittest
4438
run: |
45-
if [[ "${{ matrix.python-version }}" == "3.12" ]]; then
46-
pytest -k 'not test_envpool_cartpole'
47-
else
48-
pytest
49-
fi
39+
python -m unittest

0 commit comments

Comments
 (0)