Skip to content

Migrate Slurm to use rockylinux #485

Migrate Slurm to use rockylinux

Migrate Slurm to use rockylinux #485

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
defaults:
run:
shell: bash -l {0}
strategy:
fail-fast: false
matrix:
jobqueue: ["htcondor", "pbs", "sge", "slurm", "none"]
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout source
uses: actions/checkout@v2
- name: Setup Empty Conda Environment with Mamba
if: matrix.jobqueue == 'none'
uses: conda-incubator/setup-miniconda@v2
with:
channels: conda-forge
mamba-version: "*"
activate-environment: dask-jobqueue
auto-activate-base: false
- name: Setup dask-jobqueue conda environment
if: matrix.jobqueue == 'none'
run: |
mamba env update -f ci/environment.yml
mamba list
- name: Setup Job queuing system
if: matrix.jobqueue != 'none'
run: |
source ci/${{ matrix.jobqueue }}.sh
jobqueue_before_install
- name: Install dask-jobqueue
run: |
source ci/${{ matrix.jobqueue }}.sh
jobqueue_install
- name: Test
run: |
source ci/${{ matrix.jobqueue }}.sh
jobqueue_script
- name: Cleanup
if: always()
run: |
source ci/${{ matrix.jobqueue }}.sh
jobqueue_after_script