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: Ci-test
name: Server Tests
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:
Ci-test:
run_tests:
runs-on:
group: aws-dl1-24xlarge
group: aws-highmemory-32-plus-priv
steps:
- run: |
echo "🎉 This job uses runner scale set runners!"
# name: Server Tests
# on:
# 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:
# run_tests:
# runs-on:
# group: aws-highmemory-32-plus-priv
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python
# uses: actions/setup-python@v4
# id: python
# with:
# python-version: 3.11
# - uses: dtolnay/rust-toolchain@1.85.0
# with:
# components: rustfmt, clippy
# - name: Install Protoc
# uses: arduino/setup-protoc@v1
# - name: Clean unused files
# run: |
# sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
# sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
# - name: Install
# run: |
# sudo apt update
# sudo apt install python3.11-dev -y
# 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
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
id: python
with:
python-version: 3.11
- uses: dtolnay/rust-toolchain@1.85.0
with:
components: rustfmt, clippy
- name: Install Protoc
uses: arduino/setup-protoc@v1
- name: Clean unused files
run: |
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
- name: Install
run: |
sudo apt update
sudo apt install python3.11-dev -y
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