Skip to content

Commit

Permalink
Modified to run tests with pytest instead of unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
porink0424 committed Oct 30, 2024
1 parent 11e5ca8 commit 9ece7b1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ jobs:
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools numpy scipy hypothesis
python -m pip install --upgrade pip setuptools numpy scipy hypothesis pytest
pip install --progress-bar off .
- run: python -m unittest
- run: python -m pytest tests --ignore=tests/test_free_threaded.py
test-free-threaded:
runs-on: ubuntu-latest
steps:
Expand All @@ -55,7 +55,7 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools numpy hypothesis pytest pytest-freethreaded
pip install --progress-bar off .
- run: python -m unittest
- run: python -m pytest --threads 1 --iterations 1 tests --ignore=tests/test_free_threaded.py
# TODO: Using `unittest` style causes `pytest-freethreaded` to fail with `ConcurrencyError`.
# Rewriting as top-level functions works,
# so a follow-up is needed to refactor from `unittest` to `pytest`.
Expand All @@ -70,7 +70,7 @@ jobs:
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools scipy hypothesis
python -m pip install --upgrade pip setuptools scipy hypothesis pytest
python -m pip install --pre --upgrade numpy
pip install --progress-bar off .
- run: python -m unittest
- run: python -m pytest tests --ignore=tests/test_free_threaded.py

0 comments on commit 9ece7b1

Please sign in to comment.