Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
manoelmarques committed Jan 27, 2021
1 parent bf5d6a9 commit 205a317
Show file tree
Hide file tree
Showing 254 changed files with 3,559 additions and 738 deletions.
7 changes: 7 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file defines the persons who will be assigned as reviewers for PRs that
# modify particular files in the repo. The PR can be merged when approved by at
# least one codeowner. However, all Qiskit team members can (and should!) review the PRs.

# Global rule, unless specialized by a later one
* @stefan-woerner @pbark @manoelmarques @woodsp-ibm

29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
name: 🐛 Bug report
about: Create a report to help us improve 🤔.
---

<!-- ⚠️ If you do not respect this template, your issue will be closed -->
<!-- ⚠️ Make sure to browse the opened and closed issues -->

### Information

- **Qiskit Aqua version**:
- **Python version**:
- **Operating system**:

### What is the current behavior?



### Steps to reproduce the problem



### What is the expected behavior?



### Suggested solutions


11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/ENHANCEMENT_REQUEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: 💅 Enhancement request
about: Suggest an improvement for this project 🆒!
---

<!-- ⚠️ If you do not respect this template, your issue will be closed -->
<!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea does not exist. -->

### What is the expected enhancement?


11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: 🚀 Feature request
about: Suggest an idea for this project 💡!
---

<!-- ⚠️ If you do not respect this template, your issue will be closed -->
<!-- ⚠️ Make sure to browse the opened and closed issues to confirm this idea does not exist. -->

### What is the expected behavior?


18 changes: 18 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!--
⚠️ If you do not respect this template, your pull request will be closed.
⚠️ Your pull request title should be short detailed and understandable for all.
⚠️ Also, please add it in the CHANGELOG file under Unreleased section.
⚠️ If your pull request fixes an open issue, please link to the issue.
✅ I have added the tests to cover my changes.
✅ I have updated the documentation accordingly.
✅ I have read the CONTRIBUTING document.
-->

### Summary



### Details and comments


29 changes: 29 additions & 0 deletions .github/actions/install-libraries/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

name: 'Install Libraries'
description: 'Installs Python and Binary Libraries'

runs:
using: "composite"
steps:
- run : |
if [ -f "$HOME/miniconda/etc/profile.d/conda.sh" ]; then
source "$HOME/miniconda/etc/profile.d/conda.sh"
conda activate
# for this version of miniconda downgrade pip
pip install --upgrade --force-reinstall pip==9.0.3
else
pip install -U pip
pip install -U setuptools wheel
fi
shell: bash
34 changes: 34 additions & 0 deletions .github/actions/install-master-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

name: 'Install Qiskit Aqua Master Dependencies'
description: 'Installs Python dependencies from Master'

runs:
using: "composite"
steps:
- run : |
if [ -f "$HOME/miniconda/etc/profile.d/conda.sh" ]; then
source "$HOME/miniconda/etc/profile.d/conda.sh"
conda activate
fi
pip install https://github.com/Qiskit/qiskit-terra/archive/master.zip
pip install https://github.com/Qiskit/qiskit-ibmq-provider/archive/master.zip
sudo apt-get -y install g++-7
sudo apt-get -y install libopenblas-dev
git clone https://github.com/Qiskit/qiskit-aer.git /tmp/qiskit-aer
cd /tmp/qiskit-aer
pip install -U -c /tmp/qiskit-aer/constraints.txt -r /tmp/qiskit-aer/requirements-dev.txt
python /tmp/qiskit-aer/setup.py bdist_wheel -- -DCMAKE_CXX_COMPILER=g++-7 -DAER_THRUST_BACKEND=OMP -- -j4
pip install /tmp/qiskit-aer/dist/qiskit_aer*whl
pip install https://github.com/Qiskit/qiskit-aqua/archive/master.zip
shell: bash
26 changes: 26 additions & 0 deletions .github/actions/install-nature/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

name: 'Install Qiskit Aqua'
description: 'Installs Qiskit Aqua on developer mode'

runs:
using: "composite"
steps:
- run : |
if [ -f "$HOME/miniconda/etc/profile.d/conda.sh" ]; then
source "$HOME/miniconda/etc/profile.d/conda.sh"
conda activate
fi
pip install -e .[pyscf]
pip install -U -c constraints.txt -r requirements-dev.txt
shell: bash
24 changes: 24 additions & 0 deletions .github/actions/install-psi4/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

name: 'Install PSI4'
description: 'Installs Anaconda with PSI4'

runs:
using: "composite"
steps:
- run : |
wget http://vergil.chemistry.gatech.edu/psicode-download/Psi4conda-1.3.2-py37-Linux-x86_64.sh --tries=3 -O miniconda.sh || echo "Psi4 download failed"
if [ -f "miniconda.sh" ]; then
bash miniconda.sh -b -p $HOME/miniconda
fi
shell: bash
31 changes: 31 additions & 0 deletions .github/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

name: 'Run Unit Tests'
description: 'Run Unit Tests'
inputs:
python-version:
description: 'Python version'
required: true
runs:
using: "composite"
steps:
- run: |
if [ -f "$HOME/miniconda/etc/profile.d/conda.sh" ]; then
source "$HOME/miniconda/etc/profile.d/conda.sh"
conda activate
fi
if [ "${{ inputs.python-version }}" == "3.7" ]; then
export PYTHON="coverage3 run --source qiskit_nature --omit */gauopen/* --parallel-mode"
fi
stestr --test-path test run 2> >(tee /dev/stderr out.txt > /dev/null)
shell: bash
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This code is part of Qiskit.
#
# (C) Copyright IBM 2021.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

name: Deployment

on:
push:
tags:
- '*'

jobs:
Deploy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Deploy to Pypi
env:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
TWINE_USERNAME: qiskit
run : |
pip install -U twine pip setuptools virtualenv wheel
python3 setup.py sdist bdist_wheel
twine upload dist/qiskit*
shell: bash
Loading

0 comments on commit 205a317

Please sign in to comment.