GH Actions: use branch sync workflow #14
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: 2 | |
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: Setup mamba | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
mamba-version: '*' | |
channels: conda-forge | |
- name: Unit Tests | |
working-directory: rose | |
run: | | |
prove -vv t/rose-loc-handlers/test_rsync_loc_handlers.t |