-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github: Implement CI as a pull-request workflow
Run the tests under their own bus session to isolate them from the rest of the test environment Signed-off-by: Andrew Jeffery <[email protected]>
- Loading branch information
Showing
5 changed files
with
77 additions
and
7 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,27 @@ | ||
name: pull-request-ci | ||
on: [push, pull_request] | ||
jobs: | ||
run-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install system build dependencies | ||
run: > | ||
sudo apt-get update && | ||
sudo apt-get install libsystemd-dev ninja-build | ||
- name: Install meson | ||
run: pip install --user meson | ||
|
||
- name: Install python dependencies for mctp tests | ||
run: pip install --user -r tests/requirements.txt | ||
|
||
- name: Configure mctp build | ||
run: meson setup build | ||
|
||
- name: Build mctp | ||
run: meson compile -C build | ||
|
||
- name: Test mctp | ||
run: meson test -C build |
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
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
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
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