43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
name: Test Python CLI
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- '.gitea/workflows/test-python.yml'
|
|
- 'python/**'
|
|
|
|
jobs:
|
|
test-python:
|
|
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: Check Authentication
|
|
run: python3 python/check_github_token.py "${{ secrets.GH_TOKEN }}"
|
|
|
|
- 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
|