Files
setup-github-release/.gitea/workflows/test-python.yml
T
slawek 1ab8c20f6b
Test Action / test (push) Successful in 11s
Test Python CLI / test (push) Successful in 12s
Feat: Add GitHub Actions workflow for Python CLI testing and installation verification
2026-08-24 09:00:24 +02:00

40 lines
1.2 KiB
YAML

name: Test Python CLI
on:
push:
branches:
- main
paths:
- '.gitea/workflows/test-python.yml'
- 'python/**'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.14'
- name: Go ACME Setup
run: python3 python/install_github_release.py go-acme/lego -t archive -k "${{ secrets.GH_TOKEN }}" -p /tmp/python-cli-test
- name: Setup Hugo
run: python3 python/install_github_release.py gohugoio/hugo -f '~hugo_extended_[^a-z].*{{SYSTEM}}-{{ARCH}}' -t archive -k "${{ secrets.GH_TOKEN }}" -p /tmp/python-cli-test
- name: Setup RClone
run: python3 python/install_github_release.py rclone/rclone -t archive -k "${{ secrets.GH_TOKEN }}" -p /tmp/python-cli-test
- name: Verify Installation
run: |
echo "Verifying installed tools..."
printf "\nGo ACME Lego:\n"
/tmp/python-cli-test/lego -v
printf "\nHugo:\n"
/tmp/python-cli-test/hugo version
printf "\nRClone:\n"
/tmp/python-cli-test/rclone version