Skip to content

Commit

Permalink
Test using my branch
Browse files Browse the repository at this point in the history
  • Loading branch information
muellerzr committed Dec 21, 2023
1 parent b565a6c commit f631e5c
Showing 1 changed file with 36 additions and 35 deletions.
71 changes: 36 additions & 35 deletions .github/workflows/self_hosted_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ jobs:
- name: Install transformers
run: |
source activate accelerate;
git clone https://github.com/huggingface/transformers --depth 1;
git clone https://github.com/huggingface/transformers;
cd transformers;
git checkout muellerzr-fix-integration-tests;
pip install .[torch,deepspeed-testing];
cd ..;
Expand Down Expand Up @@ -86,40 +87,40 @@ jobs:
pip install -r examples/pytorch/_tests_requirements.txt
pytest -sv examples/pytorch/test_accelerate_examples.py examples/pytorch/test_pytorch_examples.py
run-skorch-tests:
container:
image: huggingface/accelerate-gpu:latest
options: --gpus all --shm-size "16gb"
runs-on: [self-hosted, multi-gpu, nvidia-gpu, t4, ci]
strategy:
fail-fast: false
steps:
- name: Install accelerate
run:
source activate accelerate;
git clone https://github.com/huggingface/accelerate;
cd accelerate;
git checkout ${{ github.sha }};
pip install -e .[testing];
cd ..
# run-skorch-tests:
# container:
# image: huggingface/accelerate-gpu:latest
# options: --gpus all --shm-size "16gb"
# runs-on: [self-hosted, multi-gpu, nvidia-gpu, t4, ci]
# strategy:
# fail-fast: false
# steps:
# - name: Install accelerate
# run:
# source activate accelerate;
# git clone https://github.com/huggingface/accelerate;
# cd accelerate;
# git checkout ${{ github.sha }};
# pip install -e .[testing];
# cd ..

- name: Install skorch
run: |
source activate accelerate
git clone https://github.com/skorch-dev/skorch;
cd skorch;
git config --global --add safe.directory '*'
git checkout master && git pull
pip install .[testing]
pip install flaky
# - name: Install skorch
# run: |
# source activate accelerate
# git clone https://github.com/skorch-dev/skorch;
# cd skorch;
# git config --global --add safe.directory '*'
# git checkout master && git pull
# pip install .[testing]
# pip install flaky

- name: Show installed libraries
run: |
source activate accelerate;
pip freeze
# - name: Show installed libraries
# run: |
# source activate accelerate;
# pip freeze

- name: Run skorch tests
working-directory: skorch/
run: |
source activate accelerate;
pytest -sv -k TestAccelerate
# - name: Run skorch tests
# working-directory: skorch/
# run: |
# source activate accelerate;
# pytest -sv -k TestAccelerate

0 comments on commit f631e5c

Please sign in to comment.