-
Notifications
You must be signed in to change notification settings - Fork 69
60 lines (51 loc) · 1.44 KB
/
cluster.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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