From 105777a4cde50b251c8fa4f2747490843f34d1ee Mon Sep 17 00:00:00 2001 From: Narayan Powderly Date: Wed, 15 May 2024 15:26:56 -0700 Subject: [PATCH] Regression testing (#339) Make sure builds pass on the swoop and spin projects using CI, so we can id any breaking changes earlier Co-authored-by: Matt Wildoer --- .github/workflows/regression_tests.yml | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/regression_tests.yml diff --git a/.github/workflows/regression_tests.yml b/.github/workflows/regression_tests.yml new file mode 100644 index 00000000..63a2513a --- /dev/null +++ b/.github/workflows/regression_tests.yml @@ -0,0 +1,41 @@ +name: Continuous Integration + +on: push + +jobs: + regression_tests: + runs-on: ubuntu-latest + env: + ATO_NON_INTERACTIVE: '1' + strategy: + fail-fast: false + matrix: + repo: + - 'atopile/swoop' + - 'atopile/spin-servo-drive' + + steps: + - uses: actions/checkout@v4 + # Required due to a bug in the checkout action + # https://github.com/actions/checkout/issues/1471 + - run: git fetch --prune --unshallow --tags + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install dependencies + run: pip install . + + - name: Checkout circuit repository + uses: actions/checkout@v4 + with: + repository: ${{ matrix.repo }} + path: 'circuit_repo' + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Build circuits + run: | + cd circuit_repo + ato build