Skip to content

Commit

Permalink
update GHA, repo info
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams committed Sep 18, 2024
1 parent 8f41b45 commit dbc99d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 33 deletions.
33 changes: 3 additions & 30 deletions .github/workflows/python-tiledbsoma-ml.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,11 @@
name: python-tiledbsoma-ml
name: python-tiledbsoma-ml CI

on:
pull_request:
branches: ["*"]
paths:
- "!**"
- "other_packages/python/tiledbsoma_ml/**"
- ".github/workflows/python-tiledbsoma-ml.yml"

push:
branches: [main]
paths:
- "!**"
- "other_packages/python/tiledbsoma_ml/**"
- ".github/workflows/python-tiledbsoma-ml.yml"

workflow_dispatch:

Expand Down Expand Up @@ -44,40 +36,22 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: python-spec/requirements-py${{ matrix.python-version }}.txt

- name: Install prereqs
working-directory: ./other_packages/python/tiledbsoma_ml/
run: |
pip install --upgrade pip wheel pytest pytest-cov setuptools
pip install .
- name: Run tests
run: |
PYTHONPATH=$(pwd)/other_packages/python/tiledbsoma_ml python -m pytest \
--cov=other_packages/python/tiledbsoma_ml/src \
--cov-report=xml other_packages/python/tiledbsoma_ml/tests \
-v
# - name: Report coverage to Codecov
# if: ${{ matrix.python-version == '3.11' }}
# uses: codecov/codecov-action@v4
# with:
# flags: python
# # Although Codecov isn't supposed to require an auth token for public repos like this one,
# # the uploader can be unreliable without one; see
# # https://github.com/codecov/codecov-action/issues/557#issuecomment-1216749652
# # As of this writing (8 Nov 2022) the CODECOV_TOKEN was generated by @aaronwolen in his
# # Codecov settings page for this repo, then filled into the GitHub Actions secrets.
# token: ${{ secrets.CODECOV_TOKEN }}
run: pytest -v --cov=src --cov-report=xml tests

build:
# for now, just do a test build to ensure that it works
Expand All @@ -90,7 +64,6 @@ jobs:
python-version: "3.11"

- name: Do build
working-directory: ./other_packages/python/tiledbsoma_ml/
run: |
pip install --upgrade build pip wheel setuptools setuptools-scm
python -m build .
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ classifiers = [
]

[project.urls]
Repository = "https://github.com/single-cell-data/TileDB-SOMA.git"
Issues = "https://github.com/single-cell-data/TileDB-SOMA/issues"
Changelog = "https://github.com/single-cell-data/TileDB-SOMA/blob/main/CHANGELOG.md"
Repository = "https://github.com/TileDB-Inc/TileDB-SOMA-ML.git"
Issues = "https://github.com/TileDB-Inc/TileDB-SOMA-ML/issues"
Changelog = "https://github.com/TileDB-Inc/TileDB-SOMA-ML/blob/main/CHANGELOG.md"

[tool.setuptools.dynamic]
version = {attr = "tiledbsoma_ml.__version__"}
Expand Down

0 comments on commit dbc99d2

Please sign in to comment.