Track: Track1; Team name: yeahkitory; Model: Bundle Neural Networks (BuNN) #889
Workflow file for this run
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: Testing | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # 1. Setup uv | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| cache-dependency-glob: "uv.lock" | |
| # 2. Run your centralized installation script | |
| - name: Install dependencies (via script) | |
| run: | | |
| # This script handles the .venv creation and PyTorch/CUDA logic | |
| source uv_env_setup.sh | |
| # 3. Run Tests | |
| - name: Test with pytest | |
| run: | | |
| # We must activate the venv created by your script | |
| source .venv/bin/activate | |
| pytest --cov --cov-report=xml:coverage.xml test/ | |
| - name: Upload coverage reports to Codecov | |
| uses: codecov/codecov-action@v4.0.1 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| file: coverage.xml | |
| fail_ci_if_error: false |