-
Notifications
You must be signed in to change notification settings - Fork 201
40 lines (35 loc) · 1021 Bytes
/
dockertest.yml
File metadata and controls
40 lines (35 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Docker
on:
push:
# Run post-submit tests when pushing to master.
branches:
- master
# Run tests for any PRs.
pull_request:
# Allow manual invocation, for testing.
workflow_dispatch:
jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Build Docker images
run: docker compose build
- name: Run C++ tests
run: docker run --rm qsim-cxx-tests:latest
- name: Run Python tests
run: docker run --rm qsim-py-tests:latest
- name: Run sample simulation
run: docker run --rm qsim:latest -c /qsim/circuits/circuit_q24
- name: Test install process
run: |
cd install/tests
docker compose up --build