From 85aa967e83e1067bd9ee114376870025d9ba0bdd Mon Sep 17 00:00:00 2001 From: Yiyu Ni Date: Mon, 26 Feb 2024 18:00:42 -0800 Subject: [PATCH] add pytest for ci --- .github/workflows/test.yaml | 10 ++++------ .gitignore | 3 +++ setup.py | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d222d37..65729ee 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -6,14 +6,11 @@ name: Unit-test on: - - # Runs this workflow automatically - schedule: - - cron: 45 6 * * * - - # Allows you to run this workflow manually from the Actions tab + pull_request: + push: { branches: [main] } workflow_dispatch: + jobs: build: @@ -33,6 +30,7 @@ jobs: sudo apt-get update python -m pip install --upgrade pip pip install . + pip install pytest pytest-cov pre-commit if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: List dependencies run: | diff --git a/.gitignore b/.gitignore index 4b21166..37525c5 100644 --- a/.gitignore +++ b/.gitignore @@ -134,3 +134,6 @@ dmypy.json # Pyre type checker .pyre/ + +# notebooks +notebooks/ diff --git a/setup.py b/setup.py index 97b5111..ccfc36a 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ name="dasstore", packages=find_packages(), include_package_data=True, - python_requires=">=3.7", + python_requires=">=3.8", install_requires=reqs, author="Yiyu Ni", author_email="niyiyu@uw.edu",