forked from cylc/cylc-flow
-
Notifications
You must be signed in to change notification settings - Fork 0
116 lines (101 loc) · 3.06 KB
/
test_functional.yml
File metadata and controls
116 lines (101 loc) · 3.06 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
name: functional tests
on:
workflow_dispatch:
pull_request:
paths-ignore:
- '.github/workflows/*.ya?ml'
- '!.github/workflows/test_functional.yml'
- 'cylc/flow/etc/syntax/**'
- 'etc/syntax/**'
- 'tests/conftest.py'
- 'tests/unit/**'
- 'tests/integration/**'
- '**.md'
- '**/README*/**'
push:
branches:
- master
- '8.*.x'
paths-ignore:
- '.github/workflows/*.ya?ml'
- '!.github/workflows/test_functional.yml'
- 'cylc/flow/etc/syntax/**'
- 'etc/syntax/**'
- 'tests/conftest.py'
- 'tests/unit/**'
- 'tests/integration/**'
- '**.md'
- '**/README*/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -c "exec $CONDA_PREFIX/bin/bash -elo pipefail {0}"
env:
FORCE_COLOR: 2
PIP_PROGRESS_BAR: off
jobs:
test:
runs-on: ${{ matrix.os }}
name: python-${{ matrix.python-version }} cov-${{ matrix.coverage }}
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest']
python-version: ['3.13', '3.14']
coverage: [1]
env:
# these vars are used by etc/bin/run-functional-tests
CYLC_TEST_PLATFORMS: ${{ matrix.platform }}
CYLC_COVERAGE: ${{ matrix.coverage }}
REMOTE_PLATFORM: ${{ contains(matrix.platform, '_remote') }}
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Configure Python
uses: mamba-org/setup-micromamba@v2
with:
cache-environment: true
post-cleanup: 'all'
environment-name: cylc-functional-test
create-args: >-
python=${{ matrix.python-version }}
pip
bash
coreutils
grep
sed
sqlite
subversion
tree
- name: Create global config
run: |
CONF_PATH="$HOME/.cylc/flow/8"
mkdir -p "$CONF_PATH"
touch "$CONF_PATH/global.cylc"
ln -s "$CONF_PATH/global.cylc" "$CONF_PATH/global-tests.cylc"
echo "GLOBAL_CFG_PATH=${CONF_PATH}/global.cylc" >> "$GITHUB_ENV"
- name: Add .github/bin/ to PATH
# Sets up mocked mail command & any other custom executables
# Adding to $GITHUB_PATH does not work when using setup-micromamba and/or login shell
run: |
echo "export PATH=\"${{ github.workspace }}/.github/bin:$PATH\"" >> ~/.bash_profile
- name: Install
run: |
pip install -e ."[all]"
mkdir "$HOME/cylc-run"
- name: Swarm Configure
run: |
etc/bin/swarm --yes --debug configure
- name: Configure git # Needed by the odd test
uses: cylc/release-actions/configure-git@v1
- timeout-minutes: 30
run: |
etc/bin/run-functional-tests -j 8 --state=save \
tests/functional/cylc-config
- timeout-minutes: 30
run: |
etc/bin/run-functional-tests -j 8 --state=save \
tests/functional/validate