[codex] Add benchmark suite, model onboarding pipeline, and recent CTR models #901
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_TF1 | |
| on: | |
| push: | |
| paths: | |
| - 'deepctr/**' | |
| - 'tests/**' | |
| - 'setup.py' | |
| - 'setup.cfg' | |
| - '.github/workflows/**' | |
| pull_request: | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| jobs: | |
| changes: | |
| runs-on: ubuntu-22.04 | |
| outputs: | |
| code_related: ${{ steps.filter.outputs.code_related }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Detect code-related changes | |
| id: filter | |
| uses: dorny/paths-filter@v3 | |
| with: | |
| filters: | | |
| code_related: | |
| - 'deepctr/**' | |
| - 'tests/**' | |
| - 'setup.py' | |
| - 'setup.cfg' | |
| - '.github/workflows/**' | |
| build: | |
| needs: changes | |
| runs-on: ubuntu-22.04 | |
| timeout-minutes: 240 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - python-version: "3.7" | |
| tf-version: "1.15.5" | |
| steps: | |
| - name: Docs-only PR fast-path | |
| if: ${{ github.event_name == 'pull_request' && needs.changes.outputs.code_related != 'true' }} | |
| run: echo "Docs-only PR detected; skipping heavy CI steps." | |
| - uses: actions/checkout@v5 | |
| if: ${{ github.event_name != 'pull_request' || needs.changes.outputs.code_related == 'true' }} | |
| - name: Setup python environment | |
| if: ${{ github.event_name != 'pull_request' || needs.changes.outputs.code_related == 'true' }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| if: ${{ github.event_name != 'pull_request' || needs.changes.outputs.code_related == 'true' }} | |
| run: | | |
| python -m pip install -q --upgrade pip setuptools wheel | |
| python -m pip install -q "numpy<2" | |
| python -m pip install -q tensorflow==${{ matrix.tf-version }} | |
| python -m pip install -q protobuf==3.19.0 | |
| python -m pip install -q pytest pytest-cov | |
| python -m pip install -e . | |
| python -m pip check | |
| - name: Test with pytest | |
| if: ${{ github.event_name != 'pull_request' || needs.changes.outputs.code_related == 'true' }} | |
| timeout-minutes: 240 | |
| run: | | |
| pytest --cov=deepctr --cov-report=xml --cov-report=term-missing:skip-covered | |
| - name: Upload coverage to Codecov | |
| if: ${{ github.event_name != 'pull_request' || needs.changes.outputs.code_related == 'true' }} | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| files: ./coverage.xml | |
| flags: pytest | |
| name: py${{ matrix.python-version }}-tf${{ matrix.tf-version }} |