Commit Graph

12 Commits

Author SHA1 Message Date
dependabot[bot] 977dc711d7
Bump the github_actions group with 4 updates (#11887)
Bumps the github_actions group with 4 updates: [actions/checkout](https://github.com/actions/checkout), [actions/setup-python](https://github.com/actions/setup-python), [peter-evans/create-or-update-comment](https://github.com/peter-evans/create-or-update-comment) and [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action).


Updates `actions/checkout` from 3 to 4
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

Updates `actions/setup-python` from 4 to 5
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v4...v5)

Updates `peter-evans/create-or-update-comment` from 2 to 4
- [Release notes](https://github.com/peter-evans/create-or-update-comment/releases)
- [Commits](https://github.com/peter-evans/create-or-update-comment/compare/v2...v4)

Updates `docker/setup-qemu-action` from 1 to 3
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github_actions
- dependency-name: actions/setup-python
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github_actions
- dependency-name: peter-evans/create-or-update-comment
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github_actions
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github_actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-26 14:01:53 +00:00
Jake Lishman 5eabdbe8be
Fix installed packages in randomised tests (#11477)
The randomised test suite does not to install the long-deprecated
`qiskit_ibmq_provider`, and doing so causes an old, incompatible version
of `qiskit-terra` to be installed, breaking the editable install.
2024-01-03 16:47:51 +00:00
Eric Arellano 3499bfa0c8
Turn off CI for forks (#10078) 2023-05-08 18:45:33 +00:00
Jake Lishman 51fdb3c865
Invoke `pip install` by module not executable (#9972)
On some OSes and configurations (usually Windows), there can be problems
when a binary attempts to one that is in use, especially itself.  For
this reason, it is more reliable to use `python -m pip install ...` than
`pip install`.  We have seen some CI failures on Windows due to `pip`
failing to update itself because of the direct-executable `pip install`
form.
2023-04-17 10:56:12 +00:00
Jake Lishman abfb53eb49
Ensure up-to-date `pip`, `setuptools` and `wheel` in CI (#9850)
Up-to-date Python packages should not require this step, however there
are several packages, especially those that are optional for Terra
functionality, that do not yet contain `pyproject.toml` files when
building them from source.  In these cases, `pip` will begin erroring
out from version 23.1 if `wheel` is not installed.

This commit proactively ensures that the minimum build dependencies for
legacy Python packages is prepared and up-to-date before attempting
installations; this includes ensuring that these are updated _inside_
any created venvs as well as outside them.
2023-03-27 14:06:28 +00:00
Christian Clauss 5d977fbf94
Upgrade GitHub Actions (#8856)
* Upgrade GitHub Actions

https://github.com/actions/checkout/releases
https://github.com/actions/setup-python/releases
https://github.com/actions/upload-artifact/releases
https://github.com/pypa/cibuildwheel/releases

* Update actions in other workflows

---------

Co-authored-by: Luciano Bello <bel@zurich.ibm.com>
Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
2023-02-02 14:55:56 +00:00
Matthew Treinish 219032df87
Fix github actions yaml syntax for randomized testing (#8649)
In #8639 we added an environment variable to enable printing the rust
back traces when the rust code under test panics. However, that PR had a
small syntax error as it used the bash syntax for setting an env
variable and not the correct yaml syntax for github actions. This commit
corrects the oversight to fix the job configuration so that the jobs run
again.
2022-08-31 17:21:32 +00:00
Jake Lishman d85aec58a5
Enable Rust backtraces in CI (#8639)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-08-30 17:05:03 +00:00
Matthew Treinish 82e38d1de0
Pin setuptools in CI (#8526)
* Pin setuptools in CI

The recently released setuptools 64.0.0 release introduced a regression
that prevents editable installs from working (see pypa/setuptools#3498).
This is blocking CI as we use editable installs to build and install
terra for testing. When there is an upstream release fixing this issue
we can remove the pins.

* Remove pip/setuptools/wheel manual install step

* Try venv instead of virtualenv

* Revert "Try venv instead of virtualenv"

This reverts commit 3ada819330.

* Revert "Remove pip/setuptools/wheel manual install step"

This reverts commit 831bc6e0db.

* Pin in constraints.txt too

* Lower version further

* Pin setuptools-rust too

* Set editable install to legacy mode via env var

* Set env variable correctly everywhere we build terra

* Add missing env variable setting for image tests
2022-08-12 09:13:59 +02:00
Jake Lishman c004a8195d
Revert "Pin Aer to 0.9.1 in CI (#7421)" (#7427)
This reverts commit 1ecd16a0c1.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-12-20 11:34:11 +00:00
Jake Lishman 1ecd16a0c1
Pin Aer to 0.9.1 in CI (#7421)
The recent release of Aer 0.10 has major performance regressions, and
appears to be causing Terra's CI to fail with timeouts on Mac and Linux.
2021-12-16 13:45:20 +00:00
Iskandar Sitdikov 802e612c46
Issue #5351 | move coveralls and randomized tests to actions (#7094)
* Issue 5351 | workflows: add coveralls workflow

* Issue 5351 | workflows: randomized tests

* Issue 5351 | workflows: comment on failure

* Issue 5351 | workflows: setup issue for failed randomized tests

* Issue 5351 | workflows: sha for randomized test + aer install for coverage

* Simplify formatting of error message

* Change README coverage badge to main

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-10-11 11:17:47 +00:00