Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions .github/workflows/pytest.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test

on: [push]

jobs:
test:
runs-on: self-hosted
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v10.0.1
- name: Setup environment
run: make .venv
- name: Run ty check
run: make ty
- name: Run vulture
run: make vulture
- name: Run tests
run: |
make coverage.xml
uv run coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
13 changes: 8 additions & 5 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@

all: test

test:
test: .venv
uv run pytest -s -v -x

ty:
.venv:
uv sync

ty: .venv
uv run ty check

coverage.xml:
coverage.xml: .venv
uv run pytest --junitxml=junit.xml --cov=tensorpack --cov-report xml:coverage.xml

clean:
rm -rf coverage.xml
rm -rf coverage.xml junit.xml .coverage

vulture:
vulture: .venv
uv run vulture
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name = "tensorpack"
version = "0.1.2"
description = "A collection of tensor methods from the Meyer lab."
authors = [{ name = "Cyrillus Tan", email = "cyztan@gmail.com" }]
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
requires-python = ">=3.11,<3.13"
dependencies = [
"numpy>=1.21",
Expand All @@ -15,6 +17,10 @@ dependencies = [
"scikit-learn>=1.1.2",
]

[project.urls]
Homepage = "https://github.com/meyer-lab/tensorpack"
Repository = "https://github.com/meyer-lab/tensorpack"

[dependency-groups]
dev = [
"pytest>=7.0",
Expand Down
12 changes: 0 additions & 12 deletions setup.py

This file was deleted.

Loading