Skip to content

Commit beba1ea

Browse files
committed
[ci] test on multiple versions of julia + specify compat
1 parent 611efc8 commit beba1ea

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,24 @@ on:
1010
jobs:
1111
test:
1212
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
version:
16+
- '1.0.5'
17+
- '1.5.4'
18+
- '1.6.0'
1319
steps:
1420
- uses: actions/checkout@v2
1521
- name: Setup Docker
1622
run: |
1723
docker version
1824
docker-compose version
19-
docker build -t slurm-cluster-julia -f ci/Dockerfile .
25+
docker build --build-arg JULIA_VERSION=${{matrix.version}} -t slurm-cluster-julia -f ci/Dockerfile .
2026
docker-compose -f ci/docker-compose.yml up -d
2127
docker ps
2228
- name: Test Docker
2329
run: |
24-
docker exec -t slurmctld pwd
25-
docker exec -t slurmctld ls -l
30+
docker exec -t slurmctld julia --version
2631
docker exec -t slurmctld srun -n 4 hostname
2732
- name: Test SlurmClusterManager
2833
run: |

Project.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,12 @@ version = "0.1.0"
55

66
[deps]
77
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
8+
9+
[extras]
10+
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
11+
12+
[targets]
13+
test = ["Test"]
14+
15+
[compat]
16+
julia = "1.0"

ci/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
FROM jkleinh/slurm-cluster as base
22
MAINTAINER Joseph Kleinhenz <jkleinh@umich.edu>
33

4+
ARG JULIA_VERSION=1.6.0
5+
46
RUN mkdir -p /home/docker/.local/opt/julia \
57
&& cd /home/docker/.local/opt/julia \
6-
&& curl -L https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.0-linux-x86_64.tar.gz | tar xz --strip 1
8+
&& folder="$(echo ${JULIA_VERSION} | cut -d. -f1-2)" \
9+
&& curl -L https://julialang-s3.julialang.org/bin/linux/x64/${folder}/julia-${JULIA_VERSION}-linux-x86_64.tar.gz | tar xz --strip 1 \
10+
&& /home/docker/.local/opt/julia/bin/julia --version
711

812
ENV PATH="/home/docker/.local/opt/julia/bin:${PATH}"
913

0 commit comments

Comments
 (0)