Skip to content

Commit 9eab148

Browse files
committed
Fix CI build issues on Windows and increase minimum to numpy >= 1.17
1 parent 3c70f99 commit 9eab148

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,23 @@ jobs:
2727
steps:
2828
- uses: actions/checkout@v2
2929

30-
- name: Get history and tags for SCM versioning to work
30+
- name: Get history and tags for SCM versioning to work (Unix)
31+
if: runner.os != 'Windows'
3132
run: |
3233
if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
3334
git fetch --prune --unshallow
3435
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
3536
fi
3637
38+
- name: Get history and tags for SCM versioning to work (Windows)
39+
if: runner.os == 'Windows'
40+
run: |
41+
$value = git rev-parse --is-shallow-repository
42+
if ( $value -eq "true" ); then
43+
git fetch --prune --unshallow
44+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
45+
fi
46+
3747
- name: Setup Python ${{ matrix.python }}
3848
uses: actions/setup-python@v2
3949
with:

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ python_requires = >= 3
3333
install_requires =
3434
matplotlib >= 2.2.3
3535
networkx >= 2
36-
numpy
36+
numpy >= 1.17 # mainly for Qiskit
3737
requests
3838
scipy
3939

0 commit comments

Comments
 (0)