Skip to content

Tests

Tests #593

Workflow file for this run

name: Tests
on:
push:
pull_request:
schedule:
- cron: '0 6 * * *'
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
#- windows-2019
- macos-latest
rclone:
- current
- v1.59.2
- v1.58.1
- v1.53.3 # Debian bullseye (current stable)
- v1.45 # Debian buster (current oldstable)
annex: # which annex (possible with version) to install on ubuntu
- git-annex
exclude:
# 1.45 - has some odd handling of HOME on OSX - does not use overloaded $HOME
- os: macos-latest
rclone: v1.45
include:
- os: ubuntu-22.04
annex: git-annex=8.20210330
rclone: v1.45
steps:
- name: Set up environment
uses: actions/checkout@v1
- name: Install Python
uses: actions/setup-python@v4
with:
python-version: '>=3.7'
- name: Install datalad-installer
run: pip install datalad-installer
- name: Install git-annex (Ubuntu)
if: startsWith(matrix.os, 'ubuntu-')
run: datalad-installer --sudo ok ${{ matrix.annex }} -m datalad/git-annex:release
- name: Install git-annex (macOS)
if: startsWith(matrix.os, 'macos-')
run: datalad-installer git-annex -m brew
- name: Install latest rclone
if: matrix.rclone == 'current'
run: datalad-installer --sudo ok rclone -m downloads.rclone.org
- name: Install specific version of rclone
if: matrix.rclone != 'current'
run: datalad-installer --sudo ok rclone=${{ matrix.rclone }} -m downloads.rclone.org
- name: ${{ matrix.module }} tests
run: |
PATH=$PWD:$PWD/tests:$PATH all-in-one.sh
# Test without encryption so we do get 0-sized files in rclone remote store
PATH=$PWD:$PWD/tests:$PATH GARR_TEST_ENCRYPTION=none all-in-one.sh