-
-
Notifications
You must be signed in to change notification settings - Fork 143
60 lines (51 loc) · 1.48 KB
/
ci.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: ["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