Skip to content

Commit

Permalink
add back dummy tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosgjs committed Dec 1, 2023
1 parent d2213f1 commit 250acfd
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/testing-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Run unit tests with pytest
run: |
python -m pytest tests --cov=autora_doc --cov-report=xml
python -m pytest tests --cov=autora --cov-report=xml
- name: Upload coverage report to codecov
uses: codecov/codecov-action@v3
19 changes: 12 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ classifiers = [
]
dynamic = ["version"]
dependencies = [
"ipykernel", # Support for Jupyter notebooks
"transformers>=4.35.2",
"typer",
"scipy",
# This works, while installing from pytorch and cuda from conda does not",
"torch==2.0.1",
]

# On a mac, install optional dependencies with `pip install '.[dev]'` (include the single quotes)
Expand Down Expand Up @@ -44,12 +48,7 @@ train = [
"mlflow",
"azureml-mlflow",
"azureml-core",
"typer",
"jsonlines",
"transformers>=4.35.2",
"scipy",
# This works, while installing from pytorch and cuda from conda does not",
"torch==2.0.1",
]

train_cuda = [
Expand Down Expand Up @@ -91,4 +90,10 @@ source = "vcs"
version-file = "src/autora/doc/_version.py"

[tool.hatch.version.raw-options]
local_scheme = "no-local-version"
local_scheme = "no-local-version"

[tool.hatch.build.targets.sdist]
include = ["src/autora"]

[tool.hatch.build.targets.wheel]
packages = ["src/autora"]
File renamed without changes.
13 changes: 13 additions & 0 deletions tests/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from autora.doc import example_module


def test_greetings() -> None:
"""Verify the output of the `greetings` function"""
output = example_module.greetings()
assert output == "Hello from LINCC-Frameworks!"


def test_meaning() -> None:
"""Verify the output of the `meaning` function"""
output = example_module.meaning()
assert output == 42

0 comments on commit 250acfd

Please sign in to comment.