Skip to content

Commit dc9a2f2

Browse files
committed
Add GitHub actions workflow tests
1 parent 263e2c0 commit dc9a2f2

2 files changed

Lines changed: 59 additions & 0 deletions

File tree

.github/workflows/local-test.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Local Test Workflow
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Install dependencies
14+
run: |
15+
sudo apt-get update
16+
sudo apt-get install -y build-essential cmake
17+
18+
- name: Configure
19+
run: cmake -B build
20+
21+
- name: Build
22+
run: cmake --build build
23+
24+
- name: Test
25+
run: |
26+
cd build
27+
ctest --output-on-failure

.github/workflows/tests.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow builds and tests Qedit using CMake
2+
name: Tests
3+
4+
on:
5+
push:
6+
branches: [ main ]
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Install dependencies
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y build-essential cmake
21+
22+
- name: Configure
23+
run: cmake -B build
24+
25+
- name: Build
26+
run: cmake --build build
27+
28+
- name: Test
29+
run: |
30+
cd build
31+
ctest --output-on-failure
32+

0 commit comments

Comments
 (0)