Skip to content

Commit

Permalink
add pytest for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
niyiyu committed Feb 27, 2024
1 parent 58ac9fe commit 85aa967
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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: |
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,6 @@ dmypy.json

# Pyre type checker
.pyre/

# notebooks
notebooks/
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 85aa967

Please sign in to comment.