-
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start on #105, alternative to #125 Uses container from https://github.com/giovtorres/docker-centos7-slurm
- Loading branch information
1 parent
184b858
commit 09b30cc
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
pull_request: | ||
|
||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test-slurm: | ||
timeout-minutes: 20 | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
julia_version: ["1.5", "nightly"] | ||
julia_arch: [x64] | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
env: | ||
SLURM: "latest" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- uses: julia-actions/setup-julia@latest | ||
with: | ||
arch: ${{ matrix.julia_arch }} | ||
version: ${{ matrix.julia_version }} | ||
|
||
- name: Start Slurm Docker image | ||
run: | | ||
docker pull giovtorres/docker-centos7-slurm:$SLURM | ||
docker run -d -it -h ernie -v $(pwd):/SlurmTools -v $(julia -e 'print(dirname(Sys.BINDIR))'):/julia --name slurm-$SLURM giovtorres/docker-centos7-slurm:$SLURM | ||
- name: Instantiate package | ||
run: docker exec slurm-$SLURM /julia/bin/julia --project=/SlurmTools -e 'using Pkg; Pkg.instantiate(verbose=true); Pkg.build(verbose=true)' | ||
|
||
- name: Run tests | ||
run: docker exec slurm-$SLURM /julia/bin/julia --project=/SlurmTools -e 'using Pkg; Pkg.test(test_args=["slurm"])' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters