Skip to content

Commit

Permalink
Enable example tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Jul 5, 2022
1 parent e4f0541 commit c4b7aaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ jobs:
run: |
sudo apt install pandoc
make -C doc doctest
# Disable example tests temporarily
#- name: Test examples
# if: startsWith(matrix.os, 'ubuntu') && matrix.python-version == '3.9'
# run: |
# OMP_NUM_THREADS=1 pytest examples/
- name: Test examples
if: startsWith(matrix.os, 'ubuntu') && matrix.python-version == '3.9'
run: |
OMP_NUM_THREADS=1 pytest examples/
- name: Upload coverage to Codecov
if: startsWith(matrix.os, 'ubuntu')
uses: codecov/codecov-action@v2
Expand Down
2 changes: 0 additions & 2 deletions examples/3_tangle/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
import numpy as np
import matplotlib.pyplot as plt
import argparse
import qibo
qibo.set_backend("numpy")


parser = argparse.ArgumentParser()
Expand Down

0 comments on commit c4b7aaf

Please sign in to comment.