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

55 lines
1.2 KiB
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: Install package and dependencies
run: python -m pip install .
- name: Install shells for completion tests
run: |
sudo apt-get update
sudo apt-get install -y zsh
- 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: |
ravin --version
ravin transcribe --help
ravin summarize --help
ravin questions --help