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
29 changes: 0 additions & 29 deletions .github/workflows/run-unit-tests.yml

This file was deleted.

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

on:
pull_request:
push:
paths-ignore:
- '**.md'
- 'doc/*'
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
steps:
- name: Checkout reposistory
Copy link

Copilot AI Jun 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in workflow step: 'reposistory' should be corrected to 'repository'.

Suggested change
- name: Checkout reposistory
- name: Checkout repository

Copilot uses AI. Check for mistakes.
uses: actions/checkout@v3
with:
submodules: recursive

- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}

- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Install dependent packages
run: 'make deps'

- name: Run tests
run: 'make test'
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.idea
*DS_Store*
*output*
*resource*
resource*

debug_entry*
playground.ipynb
Expand Down
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ Welcome to PyHealth!
:target: https://www.youtube.com/playlist?list=PLR3CNIF8DDHJUl8RLhyOVpX_kT4bxulEV
:alt: YouTube

.. image:: https://github.com/sunlabuiuc/PyHealth/workflows/CI/badge.svg
:target: https://github.com/sunlabuiuc/PyHealth/actions
:alt: CI status


.. -----
Expand Down
31 changes: 31 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#@meta {author: "Paul Landes"}
#@meta {desc: "PyHealth build automation", date: "2025-05-22"}


## Build
#
# directory with the unit tests
PY_TEST_DIR ?= tests
# test file glob pattern
PY_TEST_GLOB ?= test_metrics.py


## Targets
#
# install dependencies
.PHONY: deps
deps:
pip install -r requirements-nlp.txt

# run the unit test cases
.PHONY: test
test:
@echo "Running tests in $(PY_TEST_DIR)/$(PY_TEST_GLOB)"
python -m unittest discover \
-s $(PY_TEST_DIR) -p '$(PY_TEST_GLOB)' -v

# clean derived objects
.PHONY: clean
clean:
@echo "removing __pycache__"
@find . -type d -name __pycache__ -prune -exec rm -r {} \;
Loading