From 0f2686c8d3e6d949c4b7efa15d7f2dee44f7ce91 Mon Sep 17 00:00:00 2001 From: Zach Mueller Date: Wed, 15 Nov 2023 11:29:39 -0500 Subject: [PATCH] Disable pypi for merge workflows + fix trainer tests (#2153) * Disable workflows for PR + merge * skorch * Fix transformers tests too --- .github/workflows/integration_tests.yml | 8 ------- .../self_hosted_integration_tests.yml | 24 ++++--------------- 2 files changed, 5 insertions(+), 27 deletions(-) diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index e7bff0d60ca..68085ff9b21 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -25,11 +25,6 @@ jobs: runs-on: ubuntu-latest strategy: fail-fast: false - matrix: - transformers-version: [ - pypi, - github - ] steps: - uses: actions/checkout@v3.1.0 - name: Set up python 3.8 @@ -47,9 +42,6 @@ jobs: cd .. git clone https://github.com/huggingface/transformers cd transformers - if [[ ${{ matrix.transformers-version }} = pypi ]]; then - git checkout $(git describe --tags `git rev-list --tags --max-count=1`) - fi pip install .[torch,testing] - name: Show installed libraries diff --git a/.github/workflows/self_hosted_integration_tests.yml b/.github/workflows/self_hosted_integration_tests.yml index dc8b49cd38f..94e50e61ff3 100644 --- a/.github/workflows/self_hosted_integration_tests.yml +++ b/.github/workflows/self_hosted_integration_tests.yml @@ -29,10 +29,6 @@ jobs: strategy: fail-fast: false matrix: - transformers-version: [ - pypi, - github - ] cuda_visible_devices: [ "0", "0,1" @@ -51,11 +47,9 @@ jobs: run: | source activate accelerate git config --global --add safe.directory '*' - git checkout main && git pull && git fetch --tags - if [[ ${{ matrix.transformers-version }} = pypi ]]; then - git checkout $(git tag --sort=taggerdate | tail -1) - fi + git checkout main && git pull pip install .[torch,deepspeed-testing] + pip uninstall comet_ml wandb -y - name: Show installed libraries run: | @@ -82,13 +76,13 @@ jobs: pytest -sv tests/deepspeed - name: Run transformers examples tests - working-directory: transformers/examples/pytorch + working-directory: transformers/ env: CUDA_VISIBLE_DEVICES: ${{ matrix.cuda_visible_devices }} WANDB_DISABLED: true run: | - pip install -r _tests_requirements.txt - cd ../../ + source activate accelerate + 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: @@ -98,11 +92,6 @@ jobs: runs-on: [self-hosted, docker-gpu, multi-gpu, gcp] strategy: fail-fast: false - matrix: - skorch-version: [ - pypi, - github - ] steps: - name: Update accelerate clone and pip install working-directory: accelerate/ @@ -118,9 +107,6 @@ jobs: source activate accelerate git config --global --add safe.directory '*' git checkout master && git pull - if [[ ${{ matrix.skorch-version }} = pypi ]]; then - git checkout $(git describe --tags `git rev-list --tags --max-count=1`) - fi pip install .[testing] pip install flaky