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 9eab148
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,23 @@ 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" ); then
git fetch --prune --unshallow
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
fi
- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
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 9eab148

Please sign in to comment.