From eb6c2140f218f88222cfc5878f322c3a00e8115a Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 19 May 2023 09:21:43 -0300 Subject: [PATCH] [CI/CD][Added] Workflow to test stable nightlies --- .github/workflows/test_stable_nightly.yml | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/test_stable_nightly.yml diff --git a/.github/workflows/test_stable_nightly.yml b/.github/workflows/test_stable_nightly.yml new file mode 100644 index 00000000..b0a4fece --- /dev/null +++ b/.github/workflows/test_stable_nightly.yml @@ -0,0 +1,41 @@ +name: Stable nightly regression tests + +on: + workflow_dispatch + +jobs: + test: + strategy: + fail-fast: false + matrix: + ki_release: [stable_nightly] + w_tests: [g1, g2, g3] + + runs-on: ubuntu-latest + container: ghcr.io/inti-cmnb/kicad_auto_test:${{ matrix.ki_release }} + + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + - name: Test ${{ matrix.ki_release }} + env: + KI_RELEASE: ${{ matrix.ki_release }} + run: | + rm -rf output + rm -f tests/.local + # Ensure we start a fresh coverage meassurement + python3-coverage erase + # Create the caches with macros + python3-coverage run src/kibot --help-outputs > /dev/null + # Run the 90% faster tests (under 3 s) together + # Do it in parallel + ./${{ matrix.w_tests }}.sh + - name: Store results + if: ${{ always() }} + uses: actions/upload-artifact@v3 + with: + name: Test_Output_${{ matrix.ki_release }}_${{ matrix.w_tests }} + # Important! empty directories are skipped!!!! + path: output +