Skip to content

Commit

Permalink
Merge pull request #14 from qiboteam/extendci
Browse files Browse the repository at this point in the history
Extending CI
  • Loading branch information
scarrazza authored Jul 5, 2021
2 parents 77b5422 + 0bdb6b3 commit 79d2633
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest] # TODO update this when going online
python-version: [3.8]
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
Expand All @@ -29,6 +29,7 @@ jobs:
run: |
pytest --pyargs qibojit
- name: Test with jit disabled
if: startsWith(matrix.os, 'ubuntu')
run: |
NUMBA_DISABLE_JIT=1 pytest --cov=qibojit --cov-report=xml --pyargs qibojit
- name: Upload coverage to Codecov
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8] # TODO update this when going online
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.6, 3.7, 3.8, 3.9]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Runtime requirements for qibojit

numba
cupy-cuda112
psutil
2 changes: 1 addition & 1 deletion src/qibojit/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.1-dev"
__version__ = "0.0.1.dev0"
4 changes: 2 additions & 2 deletions src/qibojit/custom_operators/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ class CupyBackend(AbstractBackend): # pragma: no cover
def __init__(self):
import os
import numpy as np
import cupy as cp
import cupy_backends
import cupy as cp # pylint: disable=import-error
import cupy_backends # pylint: disable=import-error
try:
if not cp.cuda.runtime.getDeviceCount(): # pragma: no cover
raise RuntimeError("Cannot use cupy backend if GPU is not available.")
Expand Down

0 comments on commit 79d2633

Please sign in to comment.