GH Actions: use branch sync workflow #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
continue-on-error: true | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup mamba | |
if: steps.configure-py.outcome == 'failure' | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
mamba-version: '*' | |
channels: conda-forge | |
- name: Mamba info | |
if: steps.configure-py.outcome == 'failure' | |
run: mamba info | |
- name: Unit Tests | |
working-directory: rose | |
run: | | |
prove -vv t/rose-loc-handlers/test_rsync_loc_handlers.t |