From 44a3f8a2dea56f0ace40b9e5f904a1a9a7fbc233 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Fri, 18 Sep 2020 00:07:10 -0400 Subject: [PATCH] Set OMP thrust method and capture streams in tests (#935) This commit makes 2 minor changes to the CI configuration to re-enable building and running tests with the thrust OMP CPU backend. This was lost in the migration to GHA and means we're not testing the thrust simulation methods in CI which is a coverage hole. This fixes that oversight. At the same time this commit adds the QISKIT_TEST_CAPTURE_STREAMS env variable. Since Qiskit/qiskit-terra#3982 merged the base test class has had support for capturing STDOUT, STDERR, and python logging as part of the test runs, which is especially important for our CI configuration where we run tests in parallel. This just enables this option so we'll have captured output streams associated with each test method. --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 661b303f6c..cb6d14bc41 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -159,6 +159,9 @@ jobs: matrix: python-version: [3.6, 3.7, 3.8] os: ["macOS-latest", "ubuntu-latest", "windows-latest"] + env: + AER_THRUST_BACKEND: OMP + QISKIT_TEST_CAPTURE_STREAMS: 1 steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }}