Reduce file size for test copy #34
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: Run Unit Test via Pytest | |
on: [push] | |
env: | |
rclone_config: ${{ secrets.RCLONE_CONFIG }} | |
python_version: "3.10" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
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: 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 }} | |