Skip to content

Commit e5cd346

Browse files
committedJun 16, 2021
Fix CI build issues on Windows and increase minimum to numpy >= 1.17
1 parent 31281bf commit e5cd346

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed
 

‎.github/workflows/ci.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,24 @@ 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" )
43+
{
44+
git fetch --prune --unshallow
45+
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
46+
}
47+
3748
- name: Setup Python ${{ matrix.python }}
3849
uses: actions/setup-python@v2
3950
with:
@@ -333,12 +344,14 @@ jobs:
333344
steps:
334345
- uses: actions/checkout@v2
335346

336-
- name: Get history and tags for SCM versioning to work
347+
- name: Get history and tags for SCM versioning to work (Windows)
337348
run: |
338-
if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
349+
$value = git rev-parse --is-shallow-repository
350+
if ( $value -eq "true" )
351+
{
339352
git fetch --prune --unshallow
340353
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
341-
fi
354+
}
342355
343356
- name: Get pip cache dir
344357
id: pip-cache

‎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)