-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <mawildoer@gmail.com>
- Loading branch information
1 parent
b9c69f1
commit 105777a
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |