Skip to content

Commit

Permalink
thin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSherouse committed Jan 9, 2024
1 parent ce48d9e commit ab6336d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ jobs:
- name: Install Poetry Action
uses: snok/[email protected]
- name: Install Dependencies
run: poetry install
run: poetry install --only types
- name: Run mypy
run: poetry run pytest
run: poetry run mypy wbdata
test:
name: Tests
runs-on: ${{ matrix.os }}
Expand All @@ -51,6 +51,6 @@ jobs:
- name: Install Poetry Action
uses: snok/[email protected]
- name: Install Dependencies
run: poetry install
run: poetry install --only tests
- name: Run Tests
run: poetry run pytest
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ nosetests.xml

# Docs
docs/_build/

.mypy_cache
15 changes: 11 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ pandas = {version = ">=1,<3", optional=true}
cachetools = "^5.3.2"
shelved-cache = "^0.3.1"
backoff = "^2.2.1"
types-cachetools = "^5.3.0.7"
dateparser = "^1.2.0"
decorator = "^5.1.1"

Expand All @@ -34,16 +33,24 @@ pandas = ["pandas"]

[tool.poetry.group.dev.dependencies]
ruff = "^0.1.11"
ipython = "<8"

[tool.poetry.group.tests.dependencies]
pytest = "^7.4.4"
pytest-cov = "^4.1.0"

[tool.poetry.group.docs.dependencies]
mkdocs = "^1.5.3"
mkdocstrings = "^0.24.0"

[tool.poetry.group.types.dependencies]
mypy = "^1.8.0"
types-cachetools = "^5.3.0.7"
types-tabulate = "^0.9.0.20240106"
types-decorator = "^5.1.8.20240106"
types-appdirs = "^1.4.3.5"
types-requests = "^2.31.0.20240106"
ipython = "<8"
types-dateparser = "^1.1.4.20240106"
mkdocs = "^1.5.3"
mkdocstrings = "^0.24.0"

[tool.ruff.lint]
select = [
Expand Down

0 comments on commit ab6336d

Please sign in to comment.