Skip to content

Commit

Permalink
Use a requirement file for test requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-sans-paille committed Oct 14, 2023
1 parent fd4947e commit 2eb8894
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install ipython nbval pytest-xdist cython wheel
pip install -r pythran/tests/requirements.txt
pip install pytest-xdist
sudo apt install libopenblas-dev ${{ matrix.cpp-version }}
if test ${{ matrix.python-version }} != 'pypy-3.9'; then pip install scipy ; fi
- name: Setup
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install ipython nbval pytest-xdist cython scipy wheel
pip install -r pythran/tests/requirements.txt scipy
pip install pytest-xdist
sudo apt install libopenblas-dev ${{ matrix.cpp-version }}
- name: Setup
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/icc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install ipython nbval pytest-xdist cython wheel
pip install -r pythran/tests/requirements.txt
pip install pytest-xdist
if test ${{ matrix.python-version }} != '3.10' ; then pip install scipy ; fi
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install ipython nbval pytest-xdist cython scipy wheel
pip install -r pythran/tests/requirements.txt scipy
pip install pytest-xdist
sudo apt install libopenblas-dev ${{ matrix.cpp-version }}
- name: Setup
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install scipy wheel pythran-openblas pytest
pip install -r pythran/tests/requirements.txt scipy
pip install pythran-openblas pytest
- name: Setup
run: |
python setup.py install
Expand Down
8 changes: 6 additions & 2 deletions docs/DEVGUIDE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ Validation
----------

``pythran`` uses the ``unittest`` module and the `pytest
<http://pytest.org/latest/>`_ package to manage test cases. The whole
validation suite is run through the command::
<http://pytest.org/latest/>`_ package to manage test cases.

All requirementsa r elisted in ``pythran/tests/requirements.txt``.


The whole validation suite is run through the command::

$> python -m pytest pythran/tests

Expand Down
4 changes: 4 additions & 0 deletions pythran/tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ipython
nbval
cython
wheel

0 comments on commit 2eb8894

Please sign in to comment.