FEAT: Slurm Deployment For Xorbits #4
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
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: ["slurm"] | |
steps: | |
- name: Cancel previous runs | |
uses: styfle/cancel-workflow-action@0.7.0 | |
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: xorbits | |
auto-activate-base: false | |
- name: Setup xorbits conda environment | |
if: matrix.jobqueue == 'none' | |
run: | | |
mamba env update -f CI/requirements-wheel.txt | |
mamba list | |
- name: Setup Job queuing system | |
if: matrix.jobqueue != 'none' | |
run: | | |
source CI/${{ matrix.jobqueue }}.sh | |
jobqueue_before_install | |
- name: Install xorbits | |
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 |