Skip to content

Commit b7d8db5

Browse files
[CI] Add CI workflow that runs the tests
Signed-off-by: Marc Dumais <[email protected]>
1 parent 3671be6 commit b7d8db5

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/ci-cd.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
Setup-and-Test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: true
20+
- uses: actions/setup-java@v3
21+
with:
22+
distribution: 'temurin'
23+
java-version: '17'
24+
- name: Install Trace Server
25+
run: curl -o trace-compass-server.tar.gz https://download.eclipse.org/tracecompass.incubator/trace-server/rcp/trace-compass-server-latest-linux.gtk.x86_64.tar.gz; tar -xf trace-compass-server.tar.gz
26+
- name: Start Trace Server
27+
run: nohup ./trace-compass-server/tracecompass-server&
28+
- name: Set up Python 3.x
29+
uses: actions/setup-python@v4
30+
with:
31+
python-version: '3.x'
32+
- name: Set up virtual environment
33+
run: python3 -m venv .venv
34+
- name: Install dependencies
35+
run: |
36+
source .venv/bin/activate
37+
pip install -r requirements.txt
38+
- name: Run tests
39+
run: |
40+
.venv/bin/pytest

0 commit comments

Comments
 (0)