Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Oct 7, 2024
1 parent 5013c2e commit 3c629c2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/test_bettertransformer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,35 @@ jobs:
fail-fast: false
matrix:
python-version: [3.8, 3.9]
os: [ubuntu-20.04, macos-13]
exclude: [{ python-version: 3.8, os: macos-13 }]

runs-on: ${{ matrix.os }}
runs-on:
group: aws-general-8-plus

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
- name: Install dependencies (stable)
run: |
pip install .[tests]
pip install --no-cache-dir --upgrade torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install accelerate
pip install .[tests]
- name: Test with stable pytorch
- name: Test with pytest (parallel)
working-directory: tests
run: |
pytest bettertransformer -s -vvvvv
pytest bettertransformer --durations=0 -vvvv -s -n auto
- name: Install dependencies 2
- name: Install dependencies (nightly)
run: |
pip uninstall -y torch torchvision torchaudio
pip install --no-cache-dir --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cpu
- name: Test with nightly pytorch
- name: Test with pytest (parallel)
working-directory: tests
run: |
pytest bettertransformer -s -vvvvv
pytest bettertransformer --durations=0 -vvvv -s -n auto
7 changes: 4 additions & 3 deletions .github/workflows/test_export_onnx_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ jobs:
fail-fast: false
matrix:
python-version: [3.8, 3.9]
os: [ubuntu-20.04]

runs-on: ${{ matrix.os }}
runs-on:
group: aws-general-8-plus

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -34,7 +35,7 @@ jobs:
pip install .[tests,exporters]
pip install git+https://github.com/huggingface/accelerate.git
- name: Test with pytest (in parallel)
- name: Test with pytest (parallel)
working-directory: tests
run: |
pytest exporters/onnx/test_exporters_onnx_cli.py -m "not tensorflow_test and not timm_test" --durations=0 -vvvv -s -n auto

0 comments on commit 3c629c2

Please sign in to comment.