-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests(ci): add integration job to ci pipeline
Signed-off-by: Jason C. Nucciarone <[email protected]>
- Loading branch information
1 parent
809ee9a
commit 284e3fd
Showing
1 changed file
with
32 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 |
---|---|---|
|
@@ -50,3 +50,35 @@ jobs: | |
run: python3 -m pip install tox | ||
- name: Run tests | ||
run: tox run -e unit | ||
|
||
integration-test: | ||
name: Integration tests | ||
runs-on: ubuntu-latest | ||
needs: | ||
- inclusive-naming-check | ||
- lint | ||
- unit-test | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up LXD | ||
uses: canonical/[email protected] | ||
with: | ||
channel: 5.21/stable | ||
- name: Set up gambol | ||
run: | | ||
wget https://github.com/NucciTheBoss/gambol/releases/download/v0.1.0-rc1/gambol_0.1.0_amd64.snap | ||
sudo snap install ./gambol_*.snap --dangerous | ||
sudo snap connect gambol:lxd lxd:lxd | ||
sudo snap connect gambol:dot-gambol | ||
- name: Build the Slurm snap | ||
run: | | ||
sudo snap install snapcraft --classic | ||
make snap | ||
- name: Configure LXD to run a mini-HPC cluster | ||
run: | | ||
lxc profile set default security.privileged true | ||
lxc profile set default security.nesting true | ||
lxc profile set default raw.apparmor 'mount fstype=nfs*, mount fstype=rpc_pipefs,' | ||
- name: Run tests | ||
run: make integration |