Skip to content

Commit

Permalink
Fix CI build issues on Windows and increase minimum to numpy >= 1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
Takishima committed Jun 15, 2021
1 parent 3c70f99 commit 6055312
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,24 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Get history and tags for SCM versioning to work
- name: Get history and tags for SCM versioning to work (Unix)
if: runner.os != 'Windows'
run: |
if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
fi
- name: Get history and tags for SCM versioning to work (Windows)
if: runner.os == 'Windows'
run: |
$value = git rev-parse --is-shallow-repository
if ( $value -eq "true" )
{
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
}
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
Expand Down Expand Up @@ -333,12 +344,14 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Get history and tags for SCM versioning to work
- name: Get history and tags for SCM versioning to work (Windows)
run: |
if [ $(git rev-parse --is-shallow-repository) == "true" ]; then
$value = git rev-parse --is-shallow-repository
if ( $value -eq "true" )
{
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
fi
}
- name: Get pip cache dir
id: pip-cache
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ python_requires = >= 3
install_requires =
matplotlib >= 2.2.3
networkx >= 2
numpy
numpy >= 1.17 # mainly for Qiskit
requests
scipy

Expand Down

0 comments on commit 6055312

Please sign in to comment.