Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding doctest to actions #488

Merged
merged 3 commits into from
Oct 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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