Skip to content

fix: pipeline CLI test to accept exit code 2 #26

fix: pipeline CLI test to accept exit code 2

fix: pipeline CLI test to accept exit code 2 #26

Workflow file for this run

name: CI
on:
push:
branches: [ main, gh ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11']
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: 🐍 Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: 📦 Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: 🧪 Run tests
run: |
pytest tests/unit/ tests/integration/ -v --tb=short -x
- name: ✅ Summary
run: |
echo "✅ Tests completed for Python ${{ matrix.python-version }} on ${{ matrix.os }}"
lint:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout code
uses: actions/checkout@v4
- name: 🐍 Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: 📦 Install ruff
run: |
pip install ruff
- name: 🔍 Run ruff
run: |
ruff check pydhis2/ || echo "⚠️ Linting found issues (non-blocking)"
echo "✅ Linting completed"