Skip to content

Commit

Permalink
tests(ci): add integration job to ci pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Jason C. Nucciarone <[email protected]>
  • Loading branch information
NucciTheBoss committed Jun 26, 2024
1 parent 5ef095c commit d50c71a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,36 @@ 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-rc2/gambol_0.1.0_amd64-rc2.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 network set lxdbr0 ipv6.address none
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

0 comments on commit d50c71a

Please sign in to comment.