From 62ae6cc71ddcd2781e4bfe7ce1d27ee76b8559f7 Mon Sep 17 00:00:00 2001 From: JosselinSomervilleRoberts Date: Thu, 15 Feb 2024 12:13:58 -0800 Subject: [PATCH 1/5] Adding wheels update --- .github/workflows/update-requirements.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-requirements.yml b/.github/workflows/update-requirements.yml index a6527e0..a474d99 100644 --- a/.github/workflows/update-requirements.yml +++ b/.github/workflows/update-requirements.yml @@ -12,6 +12,10 @@ on: paths: - "setup.cfg" - '.github/workflows/update-requirements.yml' + pull_request: + paths: + - "setup.cfg" + - '.github/workflows/update-requirements.yml' jobs: update-requirements: @@ -35,12 +39,12 @@ jobs: restore-keys: | pip- - name: Upgrade pip - run: pip install --upgrade pip + run: pip install --upgrade pip setuptools wheel - name: Install PyTorch manually # PyTorch has to be installed manually in a separate step with --no-cache-dir # to avoid pip getting killed because PyTorch is too big # See: https://stackoverflow.com/a/54329850 - run: pip install --upgrade setuptools && pip install torch==2.0.1+cu117 torchvision==0.15.2 --index-url https://download.pytorch.org/whl/cu117 --no-cache-dir + run: pip install torch==2.0.1+cu117 torchvision==0.15.2 --index-url https://download.pytorch.org/whl/cu117 --no-cache-dir - name: Upgrade dependencies for Dependabot alerts run: pip install -e ".[all,dev]" - name: Verify dependencies From 2d6de36e3280a0320a0285d9941bed2ad10478c8 Mon Sep 17 00:00:00 2001 From: JosselinSomervilleRoberts Date: Thu, 15 Feb 2024 12:21:13 -0800 Subject: [PATCH 2/5] Add github token to update requirements test --- .github/workflows/update-requirements.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/update-requirements.yml b/.github/workflows/update-requirements.yml index a474d99..847a9bd 100644 --- a/.github/workflows/update-requirements.yml +++ b/.github/workflows/update-requirements.yml @@ -71,6 +71,8 @@ jobs: run: ./pre-commit.sh - name: Run tests run: pytest + env: + TOKEN_GITHUB: ${{ secrets.TOKEN_GITHUB }} - name: Create pull request uses: peter-evans/create-pull-request@v5 with: From 7100219d96d62d8c794c5789b3878b15a84d3020 Mon Sep 17 00:00:00 2001 From: JosselinSomervilleRoberts Date: Thu, 15 Feb 2024 12:31:11 -0800 Subject: [PATCH 3/5] Adding additional installs --- .github/workflows/update-requirements.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/update-requirements.yml b/.github/workflows/update-requirements.yml index 847a9bd..fc32859 100644 --- a/.github/workflows/update-requirements.yml +++ b/.github/workflows/update-requirements.yml @@ -69,10 +69,14 @@ jobs: # push events occur. - name: Run linter run: ./pre-commit.sh + - name: Install additional dependencies + run: sudo sh ./install.sh - name: Run tests run: pytest env: TOKEN_GITHUB: ${{ secrets.TOKEN_GITHUB }} + TEST: ${{ matrix.test }} + VERSION: ${{ github.head_ref || 'main' }} - name: Create pull request uses: peter-evans/create-pull-request@v5 with: From 4e3787a556972519bf33bd3098af30c74b33bca6 Mon Sep 17 00:00:00 2001 From: JosselinSomervilleRoberts Date: Thu, 15 Feb 2024 12:31:22 -0800 Subject: [PATCH 4/5] Adding Ruby install --- .github/workflows/update-requirements.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-requirements.yml b/.github/workflows/update-requirements.yml index fc32859..ad2da8d 100644 --- a/.github/workflows/update-requirements.yml +++ b/.github/workflows/update-requirements.yml @@ -69,10 +69,14 @@ jobs: # push events occur. - name: Run linter run: ./pre-commit.sh + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.0 - name: Install additional dependencies run: sudo sh ./install.sh - name: Run tests - run: pytest + run: pytest --durations=20 env: TOKEN_GITHUB: ${{ secrets.TOKEN_GITHUB }} TEST: ${{ matrix.test }} From 43d5722dc35b883ddcdaa8ebaefb28c460218539 Mon Sep 17 00:00:00 2001 From: JosselinSomervilleRoberts Date: Thu, 15 Feb 2024 14:03:19 -0800 Subject: [PATCH 5/5] Update branches tag --- .github/workflows/update-requirements.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/update-requirements.yml b/.github/workflows/update-requirements.yml index ad2da8d..c599691 100644 --- a/.github/workflows/update-requirements.yml +++ b/.github/workflows/update-requirements.yml @@ -13,6 +13,8 @@ on: - "setup.cfg" - '.github/workflows/update-requirements.yml' pull_request: + branches: + - '**' paths: - "setup.cfg" - '.github/workflows/update-requirements.yml'