Migrate dependency management from Poetry to uv #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| echo "$HOME/.local/bin" >> $GITHUB_PATH | |
| - name: Verify uv installation | |
| run: uv --version | |
| - name: Install dependencies | |
| run: | | |
| uv sync --extra dev --extra research | |
| - name: Test CLI commands | |
| run: | | |
| uv run ami-dataset --help | |
| uv run ami-classification --help | |
| - name: Run test suite | |
| run: | | |
| # Placeholder for running the full test suite | |
| # TODO: Add proper test command once test infrastructure is ready | |
| uv run pytest tests/ -v || echo "Tests not yet configured" | |
| - name: Verify imports | |
| run: | | |
| uv run python -c "import torch; import numpy; import pandas; print('Core dependencies imported successfully')" | |
| - name: Verify optional dependencies (research) | |
| run: | | |
| uv run python -c "import awscli; import absl; print('Research dependencies imported successfully')" |