From 30986c4446f19afb88a4178f356e9da9dd077592 Mon Sep 17 00:00:00 2001 From: Melech Lapson Date: Wed, 28 Feb 2024 09:47:57 -0600 Subject: [PATCH 1/3] Update .gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index a4393ae2ac..2445298b0e 100644 --- a/.gitignore +++ b/.gitignore @@ -107,3 +107,6 @@ Qconfig.py .DS_Store /docs/stubs/ + +# PyCharm +./idea \ No newline at end of file From eaaf02a57a45c063e77e1d96ae8496da97b0c64e Mon Sep 17 00:00:00 2001 From: Melech Lapson Date: Wed, 28 Feb 2024 10:07:02 -0600 Subject: [PATCH 2/3] updated actions in workflow yamls --- .github/workflows/ci.yml | 24 +++++++++---------- .github/workflows/deploy.yml | 4 ++-- .github/workflows/docs.yml | 6 ++--- .github/workflows/e2e-tests.yml | 4 ++-- .../integration-tests-qiskit-main.yml | 4 ++-- .github/workflows/integration-tests.yml | 4 ++-- .github/workflows/q-ctrl-tests.yml | 4 ++-- .github/workflows/unit-tests-terra-main.yml | 4 ++-- 8 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 112103463a..18a73194c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,11 +23,11 @@ jobs: name: Run code quality checks runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python 3.9 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.9 - name: Install dependencies @@ -45,11 +45,11 @@ jobs: name: Build documentation runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python 3.9 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.9 - name: Install dependencies @@ -69,7 +69,7 @@ jobs: - name: Build documentation run: tox -edocs - name: Upload documentation - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: html_docs path: docs/_build/html @@ -88,11 +88,11 @@ jobs: STREAM_LOG: True QISKIT_IN_PARALLEL: True steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -102,12 +102,12 @@ jobs: - name: Run unit tests run: make unit-test-coverage - name: Report coverage to coveralls.io - uses: coverallsapp/github-action@1.1.3 + uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} flag-name: unit-tests_python${{ matrix.python-version }}-${{ matrix.os }} parallel: true - path-to-lcov: coverage.lcov + file: coverage.lcov integration-tests: if: github.event_name == 'push' && github.repository_owner == 'Qiskit' # only kick-off resource intensive integration tests if unit tests and all basic checks succeeded @@ -130,11 +130,11 @@ jobs: STREAM_LOG: True QISKIT_IN_PARALLEL: True steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -150,7 +150,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Notify coveralls.io that all parallel tests have finished - uses: coverallsapp/github-action@1.1.3 + uses: coverallsapp/github-action@v2 with: github-token: ${{ secrets.GITHUB_TOKEN }} parallel-finished: true diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f79b2ba33d..9e40b9d6a9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -27,8 +27,8 @@ jobs: matrix: python-version: [3.9] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install deps diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 45971290d0..0de53bb4fb 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -10,11 +10,11 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.9.12' - name: Install dependencies @@ -25,7 +25,7 @@ jobs: - name: Build docs run: tox -e docs - name: Upload artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: html_docs path: docs/_build/html diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 0738bccc7b..9bbfdd2662 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -37,11 +37,11 @@ jobs: STREAM_LOG: True QISKIT_IN_PARALLEL: True steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/integration-tests-qiskit-main.yml b/.github/workflows/integration-tests-qiskit-main.yml index 2aee5c0ecf..b49e5db3da 100644 --- a/.github/workflows/integration-tests-qiskit-main.yml +++ b/.github/workflows/integration-tests-qiskit-main.yml @@ -37,11 +37,11 @@ jobs: STREAM_LOG: True QISKIT_IN_PARALLEL: True steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index f6b4b4c01d..9e8cafb90e 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -37,11 +37,11 @@ jobs: STREAM_LOG: True QISKIT_IN_PARALLEL: True steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/q-ctrl-tests.yml b/.github/workflows/q-ctrl-tests.yml index 9711955846..db047a9479 100644 --- a/.github/workflows/q-ctrl-tests.yml +++ b/.github/workflows/q-ctrl-tests.yml @@ -37,11 +37,11 @@ jobs: STREAM_LOG: True QISKIT_IN_PARALLEL: True steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies diff --git a/.github/workflows/unit-tests-terra-main.yml b/.github/workflows/unit-tests-terra-main.yml index 70e0b0933e..87fae36426 100644 --- a/.github/workflows/unit-tests-terra-main.yml +++ b/.github/workflows/unit-tests-terra-main.yml @@ -25,11 +25,11 @@ jobs: STREAM_LOG: True QISKIT_IN_PARALLEL: True steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python 3.9 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.9 - name: Install dependencies From 1849079dcae23ef41561bfc4b4836ebfa7527422 Mon Sep 17 00:00:00 2001 From: Melech Lapson Date: Wed, 28 Feb 2024 10:49:45 -0600 Subject: [PATCH 3/3] change upload-artifact action to v4 --- .github/workflows/ci.yml | 2 +- .github/workflows/deploy.yml | 2 +- .github/workflows/docs.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18a73194c3..7ad8f0ddc1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,7 +69,7 @@ jobs: - name: Build documentation run: tox -edocs - name: Upload documentation - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: html_docs path: docs/_build/html diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9e40b9d6a9..48ddca4bba 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,7 +35,7 @@ jobs: run: pip install -U pip setuptools build - name: Build sdist run: python3 -m build - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: ./dist/* - name: Deploy to Pypi diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0de53bb4fb..065c008045 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -25,7 +25,7 @@ jobs: - name: Build docs run: tox -e docs - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: html_docs path: docs/_build/html