From e847de72ab7fe0adf87fc660fc275212b7dfb925 Mon Sep 17 00:00:00 2001 From: Sarah GLINER Date: Tue, 5 Sep 2023 10:24:42 +0200 Subject: [PATCH] [tmp] --- .github/workflows/_build_nanos.yml | 10 +-- .github/workflows/_build_nanosp.yml | 4 +- .github/workflows/_build_nanox.yml | 4 +- .github/workflows/_build_stax.yml | 4 +- .github/workflows/_test_devices.yml | 8 +-- input_files/input_test.json | 108 ++++++++++++++++++++++++++++ 6 files changed, 123 insertions(+), 15 deletions(-) create mode 100644 input_files/input_test.json diff --git a/.github/workflows/_build_nanos.yml b/.github/workflows/_build_nanos.yml index 57ba293..b78017c 100644 --- a/.github/workflows/_build_nanos.yml +++ b/.github/workflows/_build_nanos.yml @@ -21,11 +21,11 @@ jobs: - name: Setup repos run: | - python3 scripts/build_and_test/main.py --input_file input_files/input.json + python3 scripts/build_and_test/main.py --input_file input_files/input_test.json - name: Launch build nanos run: | - python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref}} --input_file input_files/input.json --build --nanos --skip_setup --output_file build_nanos.json + python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref}} --input_file input_files/input_test.json --build --nanos --skip_setup --output_file build_nanos.json #- name: Push info to DB # run: | @@ -35,13 +35,13 @@ jobs: uses: actions/upload-artifact@v3 with: name: report.json - path: build_output_nanos.json + path: build_nanos.json - name: Convert to markdown run: | - python3 scripts/output_scripts/convert.py --input_file build_output_nanos.json --output_file out.md --key build + python3 scripts/output_scripts/convert.py --input_file build_nanos.json --output_file out.md --key build cat out.md >> $GITHUB_STEP_SUMMARY - name: Set job status run: | - python3 scripts/output_scripts/status.py --input_file build_output_nanos.json + python3 scripts/output_scripts/status.py --input_file build_nanos.json diff --git a/.github/workflows/_build_nanosp.yml b/.github/workflows/_build_nanosp.yml index bc3f36e..acc3025 100644 --- a/.github/workflows/_build_nanosp.yml +++ b/.github/workflows/_build_nanosp.yml @@ -21,11 +21,11 @@ jobs: - name: Setup repos run: | - python3 scripts/build_and_test/main.py --input_file input_files/input.json + python3 scripts/build_and_test/main.py --input_file input_files/input_test.json - name: Launch build nanosp run: | - python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref}} --input_file input_files/input.json --build --nanosp --skip_setup --output_file build_nanosp.json + python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref}} --input_file input_files/input_test.json --build --nanosp --skip_setup --output_file build_nanosp.json #- name: Push info to DB # run: | diff --git a/.github/workflows/_build_nanox.yml b/.github/workflows/_build_nanox.yml index c2e2cdc..ccd01c5 100644 --- a/.github/workflows/_build_nanox.yml +++ b/.github/workflows/_build_nanox.yml @@ -21,11 +21,11 @@ jobs: - name: Setup repos run: | - python3 scripts/build_and_test/main.py --input_file input_files/input.json + python3 scripts/build_and_test/main.py --input_file input_files/input_test.json - name: Launch build nanox run: | - python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref}} --input_file input_files/input.json --build --nanox --skip_setup --output_file build_nanox.json + python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref}} --input_file input_files/input_test.json --build --nanox --skip_setup --output_file build_nanox.json #- name: Push info to DB # run: | diff --git a/.github/workflows/_build_stax.yml b/.github/workflows/_build_stax.yml index d0d183b..80f13e2 100644 --- a/.github/workflows/_build_stax.yml +++ b/.github/workflows/_build_stax.yml @@ -21,11 +21,11 @@ jobs: - name: Setup repos run: | - python3 scripts/build_and_test/main.py --input_file input_files/input.json + python3 scripts/build_and_test/main.py --input_file input_files/input_test.json - name: Launch build stax run: | - python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref}} --input_file input_files/input.json --build --stax --skip_setup --output_file build_stax.json + python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref}} --input_file input_files/input_test.json --build --stax --skip_setup --output_file build_stax.json #- name: Push info to DB # run: | diff --git a/.github/workflows/_test_devices.yml b/.github/workflows/_test_devices.yml index 1a1285e..e78c347 100644 --- a/.github/workflows/_test_devices.yml +++ b/.github/workflows/_test_devices.yml @@ -43,7 +43,7 @@ jobs: - name: Setup repos run: | - python3 scripts/build_and_test/main.py --input_file input_files/input.json + python3 scripts/build_and_test/main.py --input_file input_files/input_test.json - name: Install tests dependencies run: | @@ -52,17 +52,17 @@ jobs: - name: Launch test nanosp if: ${{ inputs.run_nanosp }} run: | - python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref_nanosp }} --input_file input_files/input.json --test --nanosp --skip_setup --output_file test_nanosp.json + python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref_nanosp }} --input_file input_files/input_test.json --test --nanosp --skip_setup --output_file test_nanosp.json - name: Launch test nanox if: ${{ inputs.run_nanox }} run: | - python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref_nanox }} --input_file input_files/input.json --test --nanox --skip_setup --output_file test_nanox.json + python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref_nanox }} --input_file input_files/input_test.json --test --nanox --skip_setup --output_file test_nanox.json - name: Launch test stax if: ${{ inputs.run_stax }} run: | - python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref_stax }} --input_file input_files/input.json --test --stax --skip_setup --output_file test_stax.json + python3 scripts/build_and_test/main.py --sdk_ref ${{ inputs.sdk_ref_stax }} --input_file input_files/input_test.json --test --stax --skip_setup --output_file test_stax.json - name: Merge output files run: | diff --git a/input_files/input_test.json b/input_files/input_test.json new file mode 100644 index 0000000..19b8d99 --- /dev/null +++ b/input_files/input_test.json @@ -0,0 +1,108 @@ +[ + { + "name": "app-acala", + "owner": "Zondax", + "ref": "develop", + "url": "https://github.com/LedgerHQ/app-acala", + "build_path": "app", + "test_blacklist": [ + "nanos", + "nanosp", + "nanox", + "stax" + ], + "variant_param": "COIN", + "variants_nanos": [ + "ACA", + "ACA_XL" + ], + "variants_nanox": [ + "ACA" + ], + "variants_nanosp": [ + "ACA" + ] + }, + { + "name": "app-aergo", + "owner": "aergoio", + "ref": "develop", + "url": "https://github.com/LedgerHQ/app-aergo", + "test_blacklist": [ + "nanos", + "nanosp", + "nanox", + "stax" + ], + "variant_param": "COIN", + "variants_nanos": [ + "AERGO" + ], + "variants_nanox": [ + "AERGO" + ], + "variants_nanosp": [ + "AERGO" + ], + "variants_stax": [ + "AERGO" + ] + }, + { + "name": "app-aeternity", + "owner": "LedgerHQ", + "ref": "master", + "url": "https://github.com/LedgerHQ/app-aeternity", + "variant_param": "COIN", + "variants_nanos": [ + "aeternity" + ], + "variants_nanox": [ + "aeternity" + ], + "variants_nanosp": [ + "aeternity" + ], + "variants_stax": [ + "aeternity" + ] + }, + { + "name": "app-age", + "owner": "LedgerHQ", + "ref": "main", + "url": "https://github.com/LedgerHQ/app-age", + "build_blacklist": [ + "nanos", + "nanosp", + "nanox", + "stax" + ], + "test_blacklist": [ + "nanos", + "nanosp", + "nanox", + "stax" + ] + }, + { + "name": "app-boilerplate", + "owner": "aionnetwork", + "ref": "master", + "url": "https://github.com/LedgerHQ/app-boilerplate", + "test_dir": "tests", + "variant_param": "COIN", + "variants_nanos": [ + "BOL" + ], + "variants_nanox": [ + "BOL" + ], + "variants_nanosp": [ + "BOL" + ], + "variants_stax": [ + "BOL" + ] + } +] \ No newline at end of file