Skip to content

Commit

Permalink
Backport PR #2666 on branch 1.2.x (chore(ci): rename prerelease worfl…
Browse files Browse the repository at this point in the history
…ow to resolutions) (#2668)

Backport PR #2666: chore(ci): rename prerelease worflow to resolutions

Co-authored-by: Martin Kim <46072231+martinkim0@users.noreply.github.com>
  • Loading branch information
meeseeksmachine and martinkim0 authored Apr 2, 2024
1 parent cf6f8b1 commit 5827683
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: test (prereleases)
name: test (resolution)

on:
pull_request:
Expand All @@ -14,10 +14,10 @@ concurrency:

jobs:
test:
# if PR has label "prerelease tests" or "all tests" or if scheduled or manually triggered
# if PR has label "resolution tests" or "all tests" or if scheduled or manually triggered
if: >-
(
contains(github.event.pull_request.labels.*.name, 'prerelease tests') ||
contains(github.event.pull_request.labels.*.name, 'resolution tests') ||
contains(github.event.pull_request.labels.*.name, 'all tests') ||
contains(github.event_name, 'schedule') ||
contains(github.event_name, 'workflow_dispatch')
Expand All @@ -34,8 +34,14 @@ jobs:
matrix:
os: [ubuntu-latest]
python: ["3.9", "3.10", "3.11", "3.12"]
install-flags:
[
"--prerelease if-necessary-or-explicit",
"--resolution lowest-direct",
"--resolution lowest",
]

name: integration (prereleases)
name: integration

env:
OS: ${{ matrix.os }}
Expand All @@ -53,7 +59,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel uv
python -m uv pip install --prerelease if-necessary-or-explicit --system "scvi-tools[tests] @ ."
python -m uv pip install ${{ matrix.install-flags }} --system "scvi-tools[tests] @ ."
- name: Run pytest
env:
Expand Down

0 comments on commit 5827683

Please sign in to comment.