|
1 | | -name: Print Benchmarking |
| 1 | +# name: Print Benchmarking |
2 | 2 |
|
3 | | -on: pull_request |
| 3 | +# on: pull_request |
4 | 4 |
|
5 | | -jobs: |
6 | | - benchmark_branch: |
7 | | - timeout-minutes: 20 |
8 | | - runs-on: ubuntu-latest |
9 | | - strategy: |
10 | | - matrix: |
11 | | - python-version: ['3.9'] |
12 | | - steps: |
13 | | - - uses: actions/checkout@v2 |
14 | | - - name: Set up Python ${{ matrix.python-version }} |
15 | | - uses: actions/setup-python@v2 |
16 | | - with: |
17 | | - python-version: ${{ matrix.python-version }} |
18 | | - - name: Install dependencies |
19 | | - run: | |
20 | | - python -m pip install --upgrade pip |
21 | | - python -m pip install -e . |
22 | | - - name: benchmark |
23 | | - id: bench |
24 | | - shell: bash |
25 | | - run: | |
26 | | - bench=$(python -m tests.benchmarking) |
27 | | - # V To support multiline strings V |
28 | | - bench="${bench//'%'/'%25'}" |
29 | | - bench="${bench//$'\n'/'%0A'}" |
30 | | - bench="${bench//$'\r'/'%0D'}" |
31 | | - echo "::set-output name=bench::$bench" |
32 | | - - name: Clone prog_models |
33 | | - uses: actions/checkout@v2 |
34 | | - with: |
35 | | - repository: nasa/prog_models |
36 | | - ref: ${{ github.event.pull_request.base.ref }} |
37 | | - path: prog_models_target |
38 | | - - name: Downgrade |
39 | | - run: | |
40 | | - python -m pip uninstall -y prog_models |
41 | | - python -m pip install -e ./prog_models_target |
42 | | - cd prog_models_target |
43 | | - - name: benchmark-pre |
44 | | - id: bench-pre |
45 | | - shell: bash |
46 | | - run: | |
47 | | - bench=$(python -m tests.benchmarking) |
48 | | - # V To support multiline strings V |
49 | | - bench="${bench//'%'/'%25'}" |
50 | | - bench="${bench//$'\n'/'%0A'}" |
51 | | - bench="${bench//$'\r'/'%0D'}" |
52 | | - echo "::set-output name=bench::$bench" |
53 | | - - name: Auto Comment |
54 | | - uses: wow-actions/auto-comment@v1 |
55 | | - with: |
56 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
57 | | - pullRequestOpened: > |
58 | | - Benchmarking Results |
| 5 | +# jobs: |
| 6 | +# benchmark_branch: |
| 7 | +# timeout-minutes: 20 |
| 8 | +# runs-on: ubuntu-latest |
| 9 | +# strategy: |
| 10 | +# matrix: |
| 11 | +# python-version: ['3.9'] |
| 12 | +# steps: |
| 13 | +# - uses: actions/checkout@v2 |
| 14 | +# - name: Set up Python ${{ matrix.python-version }} |
| 15 | +# uses: actions/setup-python@v2 |
| 16 | +# with: |
| 17 | +# python-version: ${{ matrix.python-version }} |
| 18 | +# - name: Install dependencies |
| 19 | +# run: | |
| 20 | +# python -m pip install --upgrade pip |
| 21 | +# python -m pip install -e . |
| 22 | +# - name: benchmark |
| 23 | +# id: bench |
| 24 | +# shell: bash |
| 25 | +# run: | |
| 26 | +# bench=$(python -m tests.benchmarking) |
| 27 | +# # V To support multiline strings V |
| 28 | +# bench="${bench//'%'/'%25'}" |
| 29 | +# bench="${bench//$'\n'/'%0A'}" |
| 30 | +# bench="${bench//$'\r'/'%0D'}" |
| 31 | +# echo "::set-output name=bench::$bench" |
| 32 | +# - name: Clone prog_models |
| 33 | +# uses: actions/checkout@v2 |
| 34 | +# with: |
| 35 | +# repository: nasa/prog_models |
| 36 | +# ref: ${{ github.event.pull_request.base.ref }} |
| 37 | +# path: prog_models_target |
| 38 | +# - name: Downgrade |
| 39 | +# run: | |
| 40 | +# python -m pip uninstall -y prog_models |
| 41 | +# python -m pip install -e ./prog_models_target |
| 42 | +# cd prog_models_target |
| 43 | +# - name: benchmark-pre |
| 44 | +# id: bench-pre |
| 45 | +# shell: bash |
| 46 | +# run: | |
| 47 | +# bench=$(python -m tests.benchmarking) |
| 48 | +# # V To support multiline strings V |
| 49 | +# bench="${bench//'%'/'%25'}" |
| 50 | +# bench="${bench//$'\n'/'%0A'}" |
| 51 | +# bench="${bench//$'\r'/'%0D'}" |
| 52 | +# echo "::set-output name=bench::$bench" |
| 53 | +# - name: Auto Comment |
| 54 | +# uses: wow-actions/auto-comment@v1 |
| 55 | +# with: |
| 56 | +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 57 | +# pullRequestOpened: > |
| 58 | +# Benchmarking Results |
59 | 59 |
|
60 | | - From: |
| 60 | +# From: |
61 | 61 |
|
62 | | - ${{steps.bench-pre.outputs.bench}} |
| 62 | +# ${{steps.bench-pre.outputs.bench}} |
63 | 63 |
|
64 | | - To: |
| 64 | +# To: |
65 | 65 |
|
66 | | - ${{steps.bench.outputs.bench}} |
| 66 | +# ${{steps.bench.outputs.bench}} |
67 | 67 |
|
68 | | - pullRequestSynchronize: > |
69 | | - Benchmarking Results [Update] |
| 68 | +# pullRequestSynchronize: > |
| 69 | +# Benchmarking Results [Update] |
70 | 70 |
|
71 | | - From: |
| 71 | +# From: |
72 | 72 |
|
73 | | - ${{steps.bench-pre.outputs.bench}} |
| 73 | +# ${{steps.bench-pre.outputs.bench}} |
74 | 74 |
|
75 | 75 |
|
76 | | - To: |
| 76 | +# To: |
77 | 77 |
|
78 | 78 |
|
79 | | - ${{steps.bench.outputs.bench}} |
| 79 | +# ${{steps.bench.outputs.bench}} |
0 commit comments