Skip to content

Commit

Permalink
Add mypy as requirement and test correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob-Stevens-Haas committed Jan 22, 2024
1 parent 2b1f76c commit e2e6448
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: install dependencies
run: |
pip install .[dev]
- name: run mypy
run: |
mypy
Expand All @@ -55,7 +58,7 @@ jobs:
pip install .[dev]
- name: Test with pytest
run: |
coverage run --source=mitosis -m pytest mitosis/tests && coverage xml
coverage run --source=src/gen_experiments -m pytest tests && coverage xml
- uses: actions/cache@v3
with:
path: ~/.cache/pip
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,17 @@ dependencies = [
"coverage",
"isort",
"pre-commit",
"sphinx",
"codecov",
"seaborn",
"sqlalchemy<2.0",
"tomli",
]

[project.optional-dependencies]
dev = [
"mypy",
]

[project.urls]
homepage = "https://github.com/Jake-Stevens-Haas/gen-experiments"

Expand Down

0 comments on commit e2e6448

Please sign in to comment.