mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
Put back rust tests.
This commit is contained in:
parent
538994ced4
commit
725f86716b
31
.github/workflows/tests.yaml
vendored
31
.github/workflows/tests.yaml
vendored
@ -19,13 +19,6 @@ jobs:
|
|||||||
run_tests:
|
run_tests:
|
||||||
runs-on:
|
runs-on:
|
||||||
group: aws-highmemory-32-plus-priv
|
group: aws-highmemory-32-plus-priv
|
||||||
|
|
||||||
|
|
||||||
# env:
|
|
||||||
# SCCACHE_GHA_ENABLED: "on"
|
|
||||||
# RUSTC_WRAPPER: /usr/local/bin/sccache
|
|
||||||
# SCCACHE: 0.3.3
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
@ -47,28 +40,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo rm -rf /usr/local/lib/android # will release about 10 GB if you don't need Android
|
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
|
sudo rm -rf /usr/share/dotnet # will release about 20GB if you don't need .NET
|
||||||
# - name: Install sccache
|
|
||||||
# run: |
|
|
||||||
# curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sccache-v$SCCACHE-x86_64-unknown-linux-musl.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin sccache-v$SCCACHE-x86_64-unknown-linux-musl/sccache
|
|
||||||
# chmod +x /usr/local/bin/sccache
|
|
||||||
# - name: configure sccache
|
|
||||||
# uses: actions/github-script@v6
|
|
||||||
# with:
|
|
||||||
# script: |
|
|
||||||
# core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || '');
|
|
||||||
# core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
|
|
||||||
# core.exportVariable('SCCACHE_GHA_CACHE_TO', 'sccache-${{runner.os}}-${{github.ref_name}}');
|
|
||||||
# core.exportVariable('SCCACHE_GHA_CACHE_FROM', 'sccache-${{runner.os}}-main,sccache-${{runner.os}}-');
|
|
||||||
# - name: cargo registry cache
|
|
||||||
# uses: actions/cache@v3
|
|
||||||
# with:
|
|
||||||
# key: cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-${{ github.sha }}
|
|
||||||
# restore-keys: |
|
|
||||||
# cargo-${{ runner.os }}-${{ hashFiles('**/Cargo.toml') }}-
|
|
||||||
# cargo-${{ runner.os }}-
|
|
||||||
# path: |
|
|
||||||
# ~/.cargo/registry
|
|
||||||
# ~/.cargo/git
|
|
||||||
- name: Install
|
- name: Install
|
||||||
run: |
|
run: |
|
||||||
sudo apt install python3.11-dev -y
|
sudo apt install python3.11-dev -y
|
||||||
@ -85,4 +56,4 @@ jobs:
|
|||||||
pre-commit run --all-files
|
pre-commit run --all-files
|
||||||
- name: Run Rust tests
|
- name: Run Rust tests
|
||||||
run: |
|
run: |
|
||||||
# /usr/local/bin/sccache --show-stats
|
cargo test
|
||||||
|
Loading…
Reference in New Issue
Block a user