Skip to content

Simplify README with project vision and create comprehensive document… #18

Simplify README with project vision and create comprehensive document…

Simplify README with project vision and create comprehensive document… #18

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: pip install uv
- name: Install dependencies
run: |
uv sync --extra dev --extra logging
- name: Test imports
run: |
uv run python -c "
import neon_tree_classification
from neon_tree_classification import NeonCrownDataset
from scripts.get_dataloaders import get_dataloaders
print('All imports successful!')
"
- name: Run tests
run: uv run pytest tests/ -v --tb=short
test-with-processing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install R and development dependencies
run: |
sudo apt-get update
sudo apt-get install -y r-base r-base-dev libtirpc-dev
- name: Install uv
run: pip install uv
- name: Install all dependencies including processing
run: |
uv sync --all-extras
- name: Test processing imports
run: |
uv run python -c "
import neon_tree_classification
from neon_tree_classification import NeonCrownDataset
print('Core imports successful!')
try:
import rpy2
print('Processing dependencies (rpy2) available!')
except ImportError as e:
print(f'Processing dependencies not available: {e}')
"
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install uv
run: pip install uv
- name: Install dependencies
run: |
uv sync --extra dev
- name: Check code formatting
run: uv run black --check neon_tree_classification/ examples/ scripts/ tests/