Skip to content

Merge branch 'main' into feature/PENG-2585--ci-validation #4

Merge branch 'main' into feature/PENG-2585--ci-validation

Merge branch 'main' into feature/PENG-2585--ci-validation #4

Workflow file for this run

name: "Run image and test it"
on:
push:
branches:
- main
pull_request:
jobs:
call-build-workflow:
name: call-build-workflow
uses: .github/workflows/build-image.yml

Check failure on line 12 in .github/workflows/test-image.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-image.yaml

Invalid workflow file

invalid value workflow reference: no version specified
validate-image:
name: copy-image
runs-on: self-hosted
needs: call-build-workflow
steps:
- name: Copy built image to target location
run: |
cp democluster/final/democluster.img .
- name: run image
run: |
bash democluster/helpers/deploy_local_democluster.sh
- name: valitate snaps
run: |
SNAP_LIST=$(multipass exec democluster -- snap list)
SNAPS=("vantage-agent" "jobbergate-agent")
for SNAP in "${SNAPS[@]}"; do
if echo "$SNAP_LIST" | grep -q "$SNAP"; then
echo "$SNAP is installed."
else
echo "$SNAP is NOT installed."
exit 1
fi
done
- name: check slurm is active
run: |
multipass exec democluster -- systemctl is-active slurmd
- name: test srun
run: |
multipass exec democluster -- srun ls
- name: check influx-db
run: |
multipass exec democluster -- systemctl is-active influxdb
- name: Cleanup
if: always()
run: |
echo "Performing cleanup..."
multipass stop democluster || true
multipass delete democluster -p || true
rm democluster.img || true
echo "Cleanup complete."