Skip to content

CI: Multiple tweaks to the CI workflow file #96

CI: Multiple tweaks to the CI workflow file

CI: Multiple tweaks to the CI workflow file #96

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- master
- develop
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
version:
- '1.0.5'
- '1.5.4'
- '1.6.0'
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Docker
run: |
docker version
docker compose version
docker build --build-arg JULIA_VERSION="${MATRIX_VERSION:?}" -t slurm-cluster-julia -f ci/Dockerfile .
docker compose -f ci/docker-compose.yml up -d
docker ps
env:
MATRIX_VERSION: ${{matrix.version}}
- name: Test Docker
run: |
docker exec -t slurmctld julia --version
docker exec -t slurmctld srun -n 4 hostname
- name: Test SlurmClusterManager
run: |
docker exec -t slurmctld julia -e 'import Pkg; Pkg.activate("SlurmClusterManager"); Pkg.test()'