|
1 | | -name: PR_testing |
| 1 | +name: CI ReSim |
2 | 2 | on: |
3 | | - # Triggers the workflow on push or pull request events but only for the "main" branch |
4 | 3 | pull_request: |
5 | | - |
6 | | - # Allows you to run this workflow manually from the Actions tab |
7 | 4 | 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 }} |
10 | 9 | jobs: |
11 | 10 | prepare: |
12 | | - runs-on: self-hosted |
| 11 | + runs-on: [ self-hosted, Linux, regression_testing ] |
13 | 12 | 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 | + |
17 | 20 | testrun_modelica: |
18 | 21 | 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 |
23 | 26 | 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 | + |
27 | 35 | testrun_modelicatest: |
28 | 36 | 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 |
33 | 41 | 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