-
Notifications
You must be signed in to change notification settings - Fork 71
39 lines (36 loc) · 1.11 KB
/
test_inf2_export.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Optimum neuron / Test INF2 partial export
on:
push:
branches: [ main ]
paths:
- "setup.py"
- "optimum/**.py"
- ".github/workflows/test_inf2_export.yml"
pull_request:
branches: [ main ]
paths:
- "setup.py"
- "optimum/**.py"
- ".github/workflows/test_inf2_export.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
do-the-job:
name: Run INF2 export tests
runs-on:
group: aws-inf2-8xlarge
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Neuronx runtime
uses: ./.github/actions/install_neuronx_runtime
- name: Prepare virtual environment
uses: ./.github/actions/prepare_venv
- name: Install optimum-neuron
uses: ./.github/actions/install_optimum_neuron
- name: Run exporters tests
run: |
source aws_neuron_venv_pytorch/bin/activate
export MAX_EXPORT_TEST_COMBINATIONS=1
HF_TOKEN=${{ secrets.HF_TOKEN_OPTIMUM_NEURON_CI }} pytest -m is_inferentia_test tests/exporters