Skip to content

Commit

Permalink
Merge pull request #488 from qiboteam/cidoctest
Browse files Browse the repository at this point in the history
adding doctest to actions
  • Loading branch information
scarrazza committed Oct 9, 2021
2 parents bf58eb6 + 4b129b0 commit 7b28db5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,27 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pytest-cov
pip install .[tests]
pip install .[tests,docs]
pip install qibotf
pip install qibojit
- name: Install package on Windows
if: startsWith(matrix.os, 'windows')
run: |
python -m pip install --upgrade pip
pip install pytest-cov
pip install .[qibojit,tests]
pip install .[qibojit,tests,docs]
- name: Test with pylint
run: |
pip install pylint
pylint src -E -d E1123,E1120
- name: Test with pytest core
run: |
pytest --cov=qibo --cov-report=xml --pyargs qibo
- name: Test documentation examples
if: startsWith(matrix.os, 'ubuntu') && matrix.python-version == '3.9'
run: |
sudo apt install pandoc
make -C doc doctest
- name: Test examples
if: startsWith(matrix.os, 'ubuntu') && matrix.python-version == '3.9'
run: |
Expand Down

0 comments on commit 7b28db5

Please sign in to comment.