Skip to content

Commit 39d3c29

Browse files
committed
Initial commit.
PiperOrigin-RevId: 775592299 Change-Id: I27d50bb073e1d4b3f016d491ea6286b0812a8cfa
0 parents  commit 39d3c29

91 files changed

Lines changed: 33512 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.ipynb linguist-documentation
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright 2025 Google LLC.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: CI
16+
on: [push, pull_request]
17+
jobs:
18+
test:
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
python-version: ["3.10", "3.11", "3.12", "3.13"]
24+
os: [ubuntu-latest]
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
- name: Install alphagenome with dependencies
32+
run: |
33+
python -m pip install -U pip hatch
34+
- name: Check
35+
run: python -m hatch run check:all
36+
- name: Unit tests
37+
run: python -m hatch test

.github/workflows/release.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Copyright 2025 Google LLC.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: Release
16+
17+
on:
18+
release:
19+
types: [published]
20+
21+
# Use "trusted publishing", see https://docs.pypi.org/trusted-publishers/
22+
jobs:
23+
release:
24+
name: Upload release to PyPI
25+
runs-on: ubuntu-latest
26+
environment:
27+
name: pypi
28+
url: https://pypi.org/p/alphagenome
29+
permissions:
30+
id-token: write
31+
steps:
32+
- uses: actions/checkout@v4
33+
with:
34+
filter: blob:none
35+
fetch-depth: 0
36+
- name: Set up Python 3.12
37+
uses: actions/setup-python@v5
38+
with:
39+
python-version: 3.12
40+
- name: Install hatch
41+
run: python -m pip install -U pip hatch
42+
- name: Build package
43+
run: python -m hatch build
44+
- name: Publish package distributions to PyPI
45+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)