feat(training): add partial class weighting experiment (#11) #18
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 | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| quality: | |
| name: Tests and lint (Python 3.12) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| cache-dependency-path: | | |
| requirements.txt | |
| requirements-dev.txt | |
| - name: Upgrade packaging tools | |
| run: python -m pip install --upgrade pip setuptools wheel | |
| - name: Install development dependencies | |
| run: python -m pip install -r requirements-dev.txt | |
| - name: Install project package | |
| run: python -m pip install --no-deps -e . | |
| - name: Verify dependency compatibility | |
| run: python -m pip check | |
| - name: Run Ruff | |
| run: python -m ruff check src tests | |
| - name: Run unit tests | |
| run: python -m pytest -q |