entropicalabs / openqaoa

Multi-backend SDK for quantum optimisation
MIT License
119 stars 58 forks source link

Add docker tests #187

Closed Q-lds closed 1 year ago

Q-lds commented 1 year ago

In order to automatically test the aws-managed job workflows this PR adds a local image of the amazon-braket-oq-dev.

This PR also changes some of the testing strategy: instead of using the binaries for rigettis QVM and QUILC these are handled (together with the oq-managed-jobs) through docker compose

codecov[bot] commented 1 year ago

Codecov Report

Merging #187 (985ad99) into dev (932d1cd) will increase coverage by 8.27%. The diff coverage is 87.28%.

@@            Coverage Diff             @@
##              dev     #187      +/-   ##
==========================================
+ Coverage   89.54%   97.81%   +8.27%     
==========================================
  Files          33       33              
  Lines        6237     6325      +88     
==========================================
+ Hits         5585     6187     +602     
+ Misses        652      138     -514     
Impacted Files Coverage Δ
tests/test_qpu_qiskit.py 95.08% <80.51%> (+83.21%) :arrow_up:
tests/test_aws_managed_jobs.py 100.00% <100.00%> (+32.07%) :arrow_up:
tests/test_qpu_braket.py 95.27% <100.00%> (+85.03%) :arrow_up:
tests/test_qpu_devices.py 98.61% <100.00%> (+61.11%) :arrow_up:
tests/test_workflows.py 99.56% <100.00%> (+<0.01%) :arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Q-lds commented 1 year ago

One thing to note is that these tests will only (currently) work on linux