Files
ravin-moodle-downloader/.github/workflows/ci.yml
T

47 lines
1002 B
YAML

name: CI
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12", "3.14"]
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: python -m unittest discover -s tests -v
- name: Check syntax
run: python -m compileall -q src tests
- name: Confirm secrets stay untracked
run: |
if git ls-files --error-unmatch .env >/dev/null 2>&1; then
echo "error: .env must never be tracked"
exit 1
fi
- name: Verify package installation
run: |
python -m pip install .
ravin --version
ravin transcribe --help
ravin summarize --help