-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (50 loc) · 1.25 KB
/
test_cylc.yml
File metadata and controls
60 lines (50 loc) · 1.25 KB
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: test
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '17 22 * * 6' # Every Saturday at 22:17
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest']
micromamba_installed: [true, false]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Mamba
if: ${{ matrix.micromamba_installed }} == true
uses: mamba-org/setup-micromamba@v2
- name: Setup Cylc
uses: ./
with:
cylc_rose: true
- name: Version
run: |
cylc version
- name: Validate
run: |
# this should pass
cylc validate ./example;
# this should fail
! cylc validate ./example -s ANSWER=6;
- name: Lint
run: |
# this should fail
! cylc lint ./example > out;
grep 'S004' out;
grep 'found 1 issue' out;
- name: Rose Macro
run: |
# this should fail
! rose macro -V -C ./example 2> err;
grep 'issues: 1' err
grep 'Not an integer' err
- name: Rose Metadata Check
run: |
rose metadata-check -C ./example/meta