wip(ci): debug the ci

This commit is contained in:
Baptiste Colle 2025-04-10 16:08:06 +02:00
parent 647aa1c525
commit eac3348cd2

View File

@ -1,79 +1,67 @@
--- name: Server Tests
name: Ci-test
on: on:
push: pull_request:
paths:
- ".github/workflows/tests.yaml"
- "server/**"
- "proto/**"
- "router/**"
- "launcher/**"
- "backends/**"
- "Cargo.lock"
- "rust-toolchain.toml"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs: jobs:
Ci-test: run_tests:
runs-on: runs-on:
group: aws-dl1-24xlarge group: aws-highmemory-32-plus-priv
steps: steps:
- run: | - uses: actions/checkout@v4
echo "🎉 This job uses runner scale set runners!" - name: Set up Python
# name: Server Tests uses: actions/setup-python@v4
id: python
# on: with:
# pull_request: python-version: 3.11
# paths: - uses: dtolnay/rust-toolchain@1.85.0
# - ".github/workflows/tests.yaml" with:
# - "server/**" components: rustfmt, clippy
# - "proto/**" - name: Install Protoc
# - "router/**" uses: arduino/setup-protoc@v1
# - "launcher/**" - name: Clean unused files
# - "backends/**" run: |
# - "Cargo.lock" sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
# - "rust-toolchain.toml" sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
- name: Install
# concurrency: run: |
# group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} sudo apt update
# cancel-in-progress: true sudo apt install python3.11-dev -y
pip install -U pip uv
# jobs: uv venv
# run_tests: source ./.venv/bin/activate
# runs-on: make install-cpu
# group: aws-highmemory-32-plus-priv - name: Download locked kernels
# steps: run: |
# - uses: actions/checkout@v4 source ./.venv/bin/activate
# - name: Set up Python kernels download server
# uses: actions/setup-python@v4 - name: Run server tests
# id: python run: |
# with: source ./.venv/bin/activate
# python-version: 3.11 uv pip install pytest
# - uses: dtolnay/rust-toolchain@1.85.0 export HF_TOKEN=${{ secrets.HF_TOKEN }}
# with: pytest -s -vv server/tests
# components: rustfmt, clippy - name: Pre-commit checks
# - name: Install Protoc run: |
# uses: arduino/setup-protoc@v1 pip install pre-commit
# - name: Clean unused files pre-commit install
# run: | pre-commit run --all-files
# sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android - name: Run Rust tests
# sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET run: |
# - name: Install cargo test
# run: | - name: Run Rust tests with google feature
# sudo apt update run: |
# sudo apt install python3.11-dev -y cargo test --features google
# pip install -U pip uv
# uv venv
# source ./.venv/bin/activate
# make install-cpu
# - name: Download locked kernels
# run: |
# source ./.venv/bin/activate
# kernels download server
# - name: Run server tests
# run: |
# source ./.venv/bin/activate
# uv pip install pytest
# export HF_TOKEN=${{ secrets.HF_TOKEN }}
# pytest -s -vv server/tests
# - name: Pre-commit checks
# run: |
# pip install pre-commit
# pre-commit install
# pre-commit run --all-files
# - name: Run Rust tests
# run: |
# cargo test
# - name: Run Rust tests with google feature
# run: |
# cargo test --features google