File: test.yml

package info (click to toggle)
git-annex-remote-rclone 0.8-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 148 kB
  • sloc: sh: 348; python: 27; makefile: 4
file content (69 lines) | stat: -rw-r--r-- 1,961 bytes parent folder | download
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
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