-
Notifications
You must be signed in to change notification settings - Fork 15
44 lines (38 loc) · 1018 Bytes
/
apptainer.yaml
File metadata and controls
44 lines (38 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
on:
push:
branches:
- master
pull_request:
branches:
- master
name: Test (Apptainer)
jobs:
test:
name: Test (Apptainer)
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
override: true
- name: Build Repository Container
run: |
echo "Building container with current repository"
make build-apptainer
- name: Run Container Tests
run: |
cd vm/apptainer
apptainer test /tmp/assassyn.sif
- name: Run pytest tests
run: |
apptainer exec /tmp/assassyn.sif pytest -n 8 python/ci-tests python/unit-tests
- name: Cleanup Containers
if: always()
run: |
echo "Cleaning up containers"
rm -f /tmp/assassyn.sif
rm -f /tmp/repo.sif
rm -f /tmp/repo.tar.gz
echo "Cleaned up all containers"