fix: resolve pixi environment configuration warnings #234
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: Comprehensive Testing | |
| on: | |
| push: | |
| branches: [main, development] | |
| paths-ignore: | |
| - '**.md' | |
| - '**/docs/**' | |
| pull_request: | |
| branches: [main, development] | |
| paths-ignore: | |
| - '**.md' | |
| - '**/docs/**' | |
| workflow_dispatch: | |
| jobs: | |
| changed-files: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| any_changed: ${{ steps.filter.outputs.any_changed }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - id: filter | |
| uses: dorny/paths-filter@v3 | |
| with: | |
| filters: | | |
| src: | |
| - 'src/**' | |
| tests: | |
| - 'tests/**' | |
| workflows: | |
| - '.github/workflows/**' | |
| config: | |
| - 'pyproject.toml' | |
| - 'requirements.txt' | |
| - 'setup.cfg' | |
| - name: Set output if any relevant files changed | |
| run: echo "any_changed=${{ steps.filter.outputs.src == 'true' || steps.filter.outputs.tests == 'true' || steps.filter.outputs.config == 'true' }}" >> $GITHUB_OUTPUT | |
| test: | |
| needs: changed-files | |
| if: needs.changed-files.outputs.any_changed == 'true' | |
| runs-on: ubuntu-latest | |
| env: | |
| ENVIRONMENT: ci | |
| PYTHONUNBUFFERED: 1 | |
| PIXI_ENV: ci | |
| UCKN_DISABLE_TORCH: "1" | |
| HF_HUB_DISABLE_PROGRESS_BARS: "1" | |
| HF_HUB_DISABLE_TELEMETRY: "1" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup pixi | |
| uses: prefix-dev/[email protected] | |
| with: | |
| pixi-version: v0.50.2 | |
| cache: true | |
| - name: Install dependencies (pixi) | |
| run: pixi install | |
| - name: Install dev dependencies | |
| run: pixi run -e dev dev | |
| - name: Lint | |
| run: pixi run lint | |
| - name: Typecheck | |
| run: pixi run typecheck | |
| - name: Run unit tests | |
| env: | |
| ENVIRONMENT: ci | |
| UCKN_DISABLE_TORCH: "1" | |
| HF_HUB_DISABLE_PROGRESS_BARS: "1" | |
| HF_HUB_DISABLE_TELEMETRY: "1" | |
| run: | | |
| pixi run db-migrate || echo "Migration completed or no migrations needed" | |
| pixi run -e quality test --json-report --json-report-file=pytest-unit.json | |
| - name: Run integration tests | |
| run: echo "Integration tests - running all tests (markers not implemented yet)" | |
| - name: Run e2e tests | |
| run: echo "E2E tests - running all tests (markers not implemented yet)" | |
| - name: Run all tests with coverage | |
| env: | |
| ENVIRONMENT: ci | |
| UCKN_DISABLE_TORCH: "1" | |
| HF_HUB_DISABLE_PROGRESS_BARS: "1" | |
| HF_HUB_DISABLE_TELEMETRY: "1" | |
| run: pixi run -e quality test-cov | |
| - name: Upload coverage and test artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-artifacts | |
| path: | | |
| .coverage | |
| coverage.json | |
| pytest-unit.json | |
| pytest-integration.json | |
| pytest-e2e.json | |
| - name: Quality Gate (with dependencies) | |
| run: | | |
| pixi run -e quality quality-gate | |
| - name: Regression Testing & Baseline Comparison | |
| run: | | |
| if [ -f coverage.json ]; then | |
| pixi run coverage-trend | |
| fi | |
| - name: Coverage Diff Analysis | |
| run: | | |
| if [ -f coverage.json ]; then | |
| pixi run -e quality test-cov | |
| fi | |
| - name: Notify Results (GitHub API) | |
| if: always() | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| curl -X POST \ | |
| -H "Authorization: token $GITHUB_TOKEN" \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| https://api.github.com/repos/${{ github.repository }}/statuses/${{ github.sha }} \ | |
| -d '{"state": "success", "context": "Comprehensive Tests", "description": "All tests and quality checks complete."}' |