Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkim0 authored Feb 5, 2024
2 parents 3319fc8 + 0f560d5 commit 3a67d1c
Show file tree
Hide file tree
Showing 20 changed files with 184 additions and 82 deletions.
2 changes: 0 additions & 2 deletions .gitattributes

This file was deleted.

12 changes: 5 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Check build
name: Build

on:
push:
branches:
[main, 0.15.x, 0.16.x, 0.17.x, 0.18.x, 0.19.x, 0.20.x, 1.0.x, 1.1.x]
branches: [main, 1.1.x]
pull_request:
branches:
[main, 0.15.x, 0.16.x, 0.17.x, 0.18.x, 0.19.x, 0.20.x, 1.0.x, 1.1.x]
branches: [main, 1.1.x]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -18,9 +16,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.11"
cache: "pip"
cache-dependency-path: "**/pyproject.toml"
- name: Install build dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
with:
filter: blob:none
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
python-version: "3.11"
cache: "pip"
- run: pip install build
- run: python -m build
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/test_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@ name: Test (Linux)

on:
push:
branches:
[main, 0.15.x, 0.16.x, 0.17.x, 0.18.x, 0.19.x, 0.20.x, 1.0.x, 1.1.x]
branches: [main, 1.1.x]
pull_request:
branches:
[main, 0.15.x, 0.16.x, 0.17.x, 0.18.x, 0.19.x, 0.20.x, 1.0.x, 1.1.x]
branches: [main, 1.1.x]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -25,7 +23,7 @@ jobs:
os: [ubuntu-latest]
python: ["3.9", "3.10", "3.11"]

name: ${{ matrix.name }} Python ${{ matrix.python }}
name: Integration

env:
OS: ${{ matrix.os }}
Expand All @@ -34,7 +32,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: "pip"
Expand Down
21 changes: 13 additions & 8 deletions .github/workflows/test_linux_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Test (Linux, CUDA)

on:
pull_request:
branches:
[main, 0.15.x, 0.16.x, 0.17.x, 0.18.x, 0.19.x, 0.20.x, 1.0.x, 1.1.x]
branches: [main, 1.1.x]
types: [labeled, synchronize, opened]
schedule:
- cron: "0 10 * * *" # runs at 10:00 UTC -> 03:00 PST every day
- cron: "0 10 * * *" # runs at 10:00 UTC (03:00 PST) every day
workflow_dispatch:

concurrency:
Expand All @@ -14,6 +14,14 @@ concurrency:

jobs:
test:
# if PR has label "cuda tests" or "all tests" or if scheduled or manually triggered
if: >-
(
contains(github.event.pull_request.labels.*.name, 'cuda tests') ||
contains(github.event.pull_request.labels.*.name, 'all tests') ||
contains(github.event_name, 'schedule') ||
contains(github.event_name, 'workflow_dispatch')
)
runs-on: [self-hosted, Linux, X64, CUDA]
defaults:
run:
Expand All @@ -26,13 +34,10 @@ jobs:
cuda: ["11"]

container:
image: martinkim0/scvi-tools:py${{ matrix.python }}-cu${{ matrix.cuda }}-base
image: scverse/scvi-tools:py${{ matrix.python }}-cu${{ matrix.cuda }}-base
options: --user root --gpus all

environment:
name: private_test

name: ${{ matrix.name }} Python ${{ matrix.python }} CUDA
name: Integration (CUDA)

env:
OS: ${{ matrix.os }}
Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/test_linux_pre.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Test (Linux, prerelease)
name: Test (Linux, prereleases)

on:
pull_request:
branches: [main, 1.1.x]
types: [labeled, synchronize, opened]
schedule:
- cron: "0 10 * * *" # runs at 10:00 UTC -> 03:00 PST every day
- cron: "0 10 * * *" # runs at 10:00 UTC (03:00 PST) every day
workflow_dispatch:

concurrency:
Expand All @@ -11,6 +14,14 @@ concurrency:

jobs:
test:
# if PR has label "cuda 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, 'all tests') ||
contains(github.event_name, 'schedule') ||
contains(github.event_name, 'workflow_dispatch')
)
runs-on: ${{ matrix.os }}
defaults:
run:
Expand All @@ -22,7 +33,7 @@ jobs:
os: [ubuntu-latest]
python: ["3.9", "3.10", "3.11", "3.12"]

name: ${{ matrix.name }} Python ${{ matrix.python }} prereleases
name: Integration (Prereleases)

env:
OS: ${{ matrix.os }}
Expand All @@ -31,7 +42,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: "pip"
Expand Down
24 changes: 17 additions & 7 deletions .github/workflows/test_linux_private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ name: Test (Linux, private)

on:
pull_request:
branches:
[main, 0.15.x, 0.16.x, 0.17.x, 0.18.x, 0.19.x, 0.20.x, 1.0.x, 1.1.x]
branches: [main, 1.1.x]
types: [labeled, synchronize, opened]
push:
branches: [main, 1.1.x]
schedule:
- cron: "0 10 * * *" # runs at 10:00 UTC (03:00 PST) every day
workflow_dispatch:

concurrency:
Expand All @@ -12,6 +16,15 @@ concurrency:

jobs:
test:
# if PR has label "private tests" or "all tests" or if scheduled or manually triggered or on push
if: >-
(
contains(github.event.pull_request.labels.*.name, 'private tests') ||
contains(github.event.pull_request.labels.*.name, 'all tests') ||
contains(github.event_name, 'schedule') ||
contains(github.event_name, 'workflow_dispatch') ||
contains(github.event_name, 'push')
)
runs-on: ${{ matrix.os }}
defaults:
run:
Expand All @@ -23,13 +36,10 @@ jobs:
os: [ubuntu-latest]
python: ["3.11"]

environment:
name: private_test

permissions:
id-token: write

name: ${{ matrix.name }} Python ${{ matrix.python }} private
name: Unit (Private)

env:
OS: ${{ matrix.os }}
Expand All @@ -44,7 +54,7 @@ jobs:
aws-region: us-west-1
role-duration-seconds: 3600
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: "pip"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
os: [macos-latest]
python: ["3.9", "3.10", "3.11"]

name: ${{ matrix.name }} Python ${{ matrix.python }}
name: Integration

env:
OS: ${{ matrix.os }}
Expand All @@ -31,7 +31,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: "pip"
Expand Down
59 changes: 59 additions & 0 deletions .github/workflows/test_macos_m1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Test (MacOS M1)

on:
schedule:
- cron: "0 10 * * *" # runs at 10:00 UTC -> 03:00 PST every day
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -e {0} # -e to fail on error

strategy:
fail-fast: false
matrix:
os: [macos-14]
python: ["3.9", "3.10", "3.11"]

name: Integration

env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python }}

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: "pip"
cache-dependency-path: "**/pyproject.toml"

- name: Install test dependencies
run: |
python -m pip install --upgrade pip wheel
- name: Install dependencies
run: |
pip install ".[tests]"
- name: Test
env:
MPLBACKEND: agg
PLATFORM: ${{ matrix.os }}
DISPLAY: :42
run: |
coverage run -m pytest -v --color=yes
- name: Report coverage
run: |
coverage report
- name: Upload coverage
uses: codecov/codecov-action@v3
6 changes: 3 additions & 3 deletions .github/workflows/test_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Test (Windows)

on:
schedule:
- cron: "0 10 * * *" # runs at 10:00 UTC -> 03:00 PST every day
- cron: "0 10 * * *" # runs at 10:00 UTC (03:00 PST) every day
workflow_dispatch:

concurrency:
Expand All @@ -22,7 +22,7 @@ jobs:
os: [windows-latest]
python: ["3.9", "3.10", "3.11"]

name: ${{ matrix.name }} Python ${{ matrix.python }}
name: Integration

env:
OS: ${{ matrix.os }}
Expand All @@ -31,7 +31,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: "pip"
Expand Down
14 changes: 9 additions & 5 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Run to check if valid
# curl --data-binary @codecov.yml https://codecov.io/validate
codecov:
require_ci_to_pass: no

coverage:
status:
project:
default:
target: 85%
threshold: 1%
patch: off
patch: false
changes: false

ignore:
- "scvi/_compat.py"
comment:
layout: diff, flags, files
behavior: once
require_base: no
5 changes: 3 additions & 2 deletions docs/release_notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ is available in the [commit logs](https://github.com/scverse/scvi-tools/commits/
[keep a changelog]: https://keepachangelog.com/en/1.0.0/
[semantic versioning]: https://semver.org/spec/v2.0.0.html

### 1.1.0 (2023-12-DD)
### 1.1.0 (2024-02-DD)

#### Added

Expand Down Expand Up @@ -76,6 +76,7 @@ is available in the [commit logs](https://github.com/scverse/scvi-tools/commits/
- Fix initialization of {class}`scvi.distributions.NegativeBinomial` and
{class}`scvi.distributions.ZeroInflatedNegativeBinomial` when `validate_args=True` and
optional parameters not passed in {pr}`2395`.
- Fix error when re-initializing {class}`scvi.external.GIMVI` with the same datasets {pr}`2446`.

#### Changed

Expand Down Expand Up @@ -110,7 +111,7 @@ is available in the [commit logs](https://github.com/scverse/scvi-tools/commits/

## Version 1.0

### 1.0.4 (2023-10-xx)
### 1.0.4 (2023-10-13)

### Added

Expand Down
1 change: 1 addition & 0 deletions docs/tutorials/index_scrna.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ notebooks/scrna/cellassign_tutorial
notebooks/scrna/amortized_lda
notebooks/scrna/scVI_DE_worm
notebooks/scrna/contrastiveVI_tutorial
notebooks/scrna/scanvi_fix
```
2 changes: 1 addition & 1 deletion docs/tutorials/notebooks
Loading

0 comments on commit 3a67d1c

Please sign in to comment.