Feat: Add GitHub Actions workflow for Python CLI testing and installation verification
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
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
|
||||
Reference in New Issue
Block a user