Skip to content

Fix: missing rclone exception in all transfer operations. #63

Fix: missing rclone exception in all transfer operations.

Fix: missing rclone exception in all transfer operations. #63

Workflow file for this run

name: Run Unit Test via Pytest
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
env:
rclone_config: ${{ secrets.RCLONE_CONFIG }}
python_version: "3.10"
timezone: "Europe/Berlin"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ env.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.python_version }}
- name: Install the rclone software
run: sudo -v ; curl https://rclone.org/install.sh | sudo bash
- name: Setup rclone config file
run: |
mkdir -p ~/.config/rclone
echo "$rclone_config" > ~/.config/rclone/rclone.conf
rclone listremotes
- name: Set timezone
run: |
sudo timedatectl set-timezone ${{ env.timezone }}
timedatectl
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest
- name: Run test suite
run: |
pytest -v
- name: Update rclone config file secret
run: cat ~/.config/rclone/rclone.conf | gh secret set RCLONE_CONFIG
env:
rclone_config_secret_name: RCLONE_CONFIG
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GH_REPO: ${{ github.repository }}