diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 450f4bb6c..63292b50a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/setup.cfg b/setup.cfg index c81e99ae7..875789313 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,7 +33,7 @@ python_requires = >= 3 install_requires = matplotlib >= 2.2.3 networkx >= 2 - numpy + numpy >= 1.17 # mainly for Qiskit requests scipy