Try to run tests without installing them beforehand
@@ -17,18 +17,18 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install -r requirements_dev.txt
- sudo apt-get install xvfb
- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
+ #- name: Install dependencies
+ # run: |
+ # python -m pip install --upgrade pip
+ # pip install -r requirements_dev.txt
+ # sudo apt-get install xvfb
+ # if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- - name: Installing package locally for pytest and nbval
- if: ${{ always() }}
- run: |
- # this is required to test the notebooks. If not done, module skrf will not be found
- python setup.py install
+ #- name: Installing package locally for pytest and nbval
+ # if: ${{ always() }}
+ # run: |
+ # # this is required to test the notebooks. If not done, module skrf will not be found
+ # python setup.py install
# code quality check (linting)
- name: Lint with flake8
@@ -43,18 +43,18 @@ jobs:
- name: Test with pytest
if: ${{ always() }}
run: |
- pytest
+ tox -e ${{ matrix.python-version }}
# test notebooks
- name: Run tutorials notebooks with nbval
if: ${{ always() }}
run: |
- pytest --nbval-lax --current-env -p no:python --cov-append doc/source/tutorials/
+ tox -e ${{ matrix.python-version }} --nbval-lax --current-env -p no:python --cov-append doc/source/tutorials/
- name: Run examples notebooks with nbval
if: ${{ always() }}
run: |
- pytest --nbval-lax --current-env -p no:python --cov-append --ignore=doc/source/examples/instrumentcontrol/ doc/source/examples/
+ tox -e ${{ matrix.python-version }} --nbval-lax --current-env -p no:python --cov-append --ignore=doc/source/examples/instrumentcontrol/ doc/source/examples/
# Upload coverage data to coveralls.io
- name: Upload coverage data to coveralls.io
