-
Notifications
You must be signed in to change notification settings - Fork 54
56 lines (50 loc) · 1.41 KB
/
test_rsync_test_script.yml
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
name: test rsync check
on:
pull_request:
paths:
- 'metomi/rose/loc_handlers/rsync.py'
- 'metomi/rose/loc_handlers/rsync_remote_check.py'
- '.github/workflows/test_rsync_test_script.yml'
workflow_dispatch:
inputs:
rose_ref:
description: The Rose branch to test against
required: true
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest']
python-version: [
'2.7',
'3.5', '3.6',
'3.7', '3.8', '3.9', '3.12'
]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.rose_ref || github.sha }}
path: rose
- name: Configure Python
id: configure-py
uses: actions/setup-python@v5
continue-on-error: true
with:
python-version: ${{ matrix.python-version }}
- name: Setup Mamba
if: steps.configure-py.outcome == 'failure'
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
mamba-version: '*'
channels: conda-forge
- name: Unit Tests
working-directory: rose
# use login shell for conda activation
shell: bash -leo pipefail {0}
run: |
prove -vv t/rose-loc-handlers/test_rsync_loc_handlers.t