some improvement
This commit is contained in:
12 files changed
+215
-22
No files matched your search
@@ -0,0 +1,44 @@
|
||||
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 -v
|
||||
|
||||
- name: Check syntax
|
||||
run: python -m py_compile ravin_downloader.py
|
||||
|
||||
- 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-downloader --version
|
||||
Reference in new issue
Block a user