Skip to content

Commit 5d23e39

Browse files
committed
Add small test of container using podman-compose
1 parent 0097072 commit 5d23e39

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed

.github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"

.github/workflows/container.yml

+22
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,25 @@ jobs:
7070
if: github.event_name == 'push'
7171
run: |
7272
echo "${{ toJSON(steps.push.outputs) }}"
73+
74+
container-test:
75+
needs: container
76+
if: github.event_name == 'push'
77+
78+
strategy:
79+
matrix:
80+
include:
81+
- runner: 'ubuntu-latest'
82+
83+
name: Container test ${{ matrix.runner }}
84+
runs-on: ${{ matrix.runner }}
85+
86+
steps:
87+
- name: Check out
88+
uses: actions/checkout@v4
89+
90+
- name: Install podman-compose
91+
run: pip install podman-compose
92+
93+
- name: Run container test
94+
run: podman-compose run quick-test

.github/workflows/documentation-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Documentation CI
33
on:
44
pull_request:
55
branches: [ "master" ]
6+
workflow_dispatch:
67

78
permissions:
89
contents: read

compose.yaml

+14
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,17 @@ services:
2525
- 8889:8889
2626
network_mode: host
2727
hostname: pynucleus-container
28+
29+
tests:
30+
image: ghcr.io/sandialabs/pynucleus:latest
31+
build: .
32+
environment:
33+
- MPIEXEC_FLAGS=--allow-run-as-root --oversubscribe
34+
workdir: /pynucleus
35+
volumes:
36+
- $PWD:/root
37+
entrypoint: python3 -m pytest --junit-xml /root/test-results.xml
38+
39+
quick-test:
40+
image: ghcr.io/sandialabs/pynucleus:latest
41+
entrypoint: mpiexec -n 4 /pynucleus/drivers/runFractional.py

0 commit comments

Comments
 (0)