Skip to content

Commit 68186d4

Browse files
Update PRTesting.yml
1 parent c33cb0f commit 68186d4

1 file changed

Lines changed: 31 additions & 23 deletions

File tree

.github/workflows/PRTesting.yml

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,43 @@
1-
name: PR_testing
1+
name: CI ReSim
22
on:
3-
# Triggers the workflow on push or pull request events but only for the "main" branch
43
pull_request:
5-
6-
# Allows you to run this workflow manually from the Actions tab
74
workflow_dispatch:
8-
9-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
5+
env:
6+
PR_SERVER: ${{ vars.LTX_PR_SERVER }}
7+
TESTING_TOOLS: ${{ vars.LTX_TESTING_TOOLS }}
8+
SECRET: ${{ secrets.DOCRAPTOR_API_KEY }}
109
jobs:
1110
prepare:
12-
runs-on: self-hosted
11+
runs-on: [ self-hosted, Linux, regression_testing ]
1312
steps:
14-
- name: checkout_pr_repo
15-
run: /home/resimuser/regression_testing/docker/work/run_scripts/prepare_pr.sh ${{ github.event.number }}
16-
13+
- uses: actions/checkout@v6
14+
with:
15+
sparse-checkout: './.CI/ReSim'
16+
17+
- name: Checkout code in docker
18+
run: ./.CI/ReSim/prepare_pr.sh ${{ github.event.number }}
19+
1720
testrun_modelica:
1821
needs: prepare
19-
runs-on: self-hosted
20-
environment:
21-
name: test
22-
url: https://serv.ltx.de/prs/${{ github.event.number }}/Modelica/report/PR_comparison_report.html
22+
runs-on: [ self-hosted, Linux, regression_testing ]
23+
#environment:
24+
# name: Report modelica
25+
# url: $PR_SERVER/${{ github.event.number }}/Modelica/report/PR_comparison_report.html
2326
steps:
24-
- name: run modelica
25-
run: /home/resimuser/regression_testing/docker/work/run_scripts/run_pr.sh ${{ github.event.number }} ${{ github.event.pull_request.base.sha }} Modelica
26-
27+
- name: print envs
28+
run: echo "TESTING_TOOLS=$TESTING_TOOLS"
29+
env:
30+
TESTING_TOOLS: ${{ vars.LTX_TESTING_TOOLS }}
31+
- name: Run tests modelica
32+
run: ./.CI/ReSim/run_pr.sh ${{ github.event.number }} ${{ github.event.pull_request.base.sha }} Modelica ${{ github.env.TESTING_TOOLS }}
33+
34+
2735
testrun_modelicatest:
2836
needs: prepare
29-
runs-on: self-hosted
30-
environment:
31-
name: test
32-
url: https://serv.ltx.de/prs/${{ github.event.number }}/ModelicaTest/report/PR_comparison_report.html
37+
runs-on: [ self-hosted, Linux, regression_testing ]
38+
#environment:
39+
# name: Report modelicatest
40+
# url: $PR_SERVER/${{ github.event.number }}/ModelicaTest/report/PR_comparison_report.html
3341
steps:
34-
- name: run modelicatest
35-
run: /home/resimuser/regression_testing/docker/work/run_scripts/run_pr.sh ${{ github.event.number }} ${{ github.event.pull_request.base.sha }} ModelicaTest
42+
- name: Run tests modelicatest
43+
run: ./.CI/ReSim/run_pr.sh ${{ github.event.number }} ${{ github.event.pull_request.base.sha }} ModelicaTest ${{ github.env.TESTING_TOOLS }}

0 commit comments

Comments
 (0)