bifurqué depuis LengKundee/NUNA
40 lignes
1,6 Kio
YAML
40 lignes
1,6 Kio
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
python:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
id: setup-python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
"${{ steps.setup-python.outputs.python-path }}" -m pip install --upgrade pip
|
|
"${{ steps.setup-python.outputs.python-path }}" -m pip install -r requirements.txt
|
|
|
|
- name: Syntax check
|
|
run: |
|
|
"${{ steps.setup-python.outputs.python-path }}" -m compileall -q gdrive_cleanup.py
|
|
"${{ steps.setup-python.outputs.python-path }}" -m compileall -q trading_data_manager.py
|
|
|
|
- name: CLI help smoke test
|
|
run: |
|
|
"${{ steps.setup-python.outputs.python-path }}" gdrive_cleanup.py --help
|
|
"${{ steps.setup-python.outputs.python-path }}" gdrive_cleanup.py audit --help
|
|
"${{ steps.setup-python.outputs.python-path }}" gdrive_cleanup.py duplicates --help
|
|
"${{ steps.setup-python.outputs.python-path }}" gdrive_cleanup.py trash --help
|
|
"${{ steps.setup-python.outputs.python-path }}" gdrive_cleanup.py trash-query --help
|
|
"${{ steps.setup-python.outputs.python-path }}" trading_data_manager.py --help
|
|
"${{ steps.setup-python.outputs.python-path }}" trading_data_manager.py init --help
|
|
"${{ steps.setup-python.outputs.python-path }}" trading_data_manager.py run --help
|
|
"${{ steps.setup-python.outputs.python-path }}" trading_data_manager.py purge-trash --help
|