Skip to content

Commit

Permalink
Merge pull request #15 from ttan06/workflows_branch
Browse files Browse the repository at this point in the history
Added changes to workflows to add test coverage
  • Loading branch information
Alexander-Schad authored Mar 8, 2024
2 parents 9a83b5f + bb4bce0 commit 8fbdcca
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
# Next step: run the unit tests with code coverage.
- name: Unit tests
run: |
cd tests
cd makeRoute
coverage run -m unittest discover
coverage report
coverage lcov
Expand All @@ -104,7 +104,7 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
base-path: makeRoute
path-to-lcov: tests/coverage.lcov
path-to-lcov: makeRoute/coverage.lcov
# The following two options are needed for "parallel"
# runs - ie if you have a matrix of python versions.
# This holds off on reporting code coverage to
Expand Down
6 changes: 6 additions & 0 deletions makeRoute/coverage.lcov
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[report]
omit =
*__init__*
*tests*
exclude_lines =
if __name__ == .__main__.:
35 changes: 20 additions & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
[build-system]
requires = ["setuptools", "setuptools-scm"]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"

[project]
name = "baseball_travel"
version = "0.0.1"
authors = [
{name = "Alexander Schad", email = "[email protected]"},
{name = "Alexander Schad"},
{name = "Timothy Tan"},
{name = "Ananya Bajaj"},
]
description = "My package description"
description = "MLB Traveling example"
readme = "README.md"
requires-python = ">=3.8"
keywords = ["one", "two"]

license = {text = "BSD-3-Clause"}

classifiers = [
"Framework :: Django",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"requests",
'importlib-metadata; python_version<"3.10"',
]
dynamic = ["version"]
dynamic = ["dependencies"]

[project.optional-dependencies]
pdf = ["ReportLab>=1.2", "RXP"]
rest = ["docutils>=0.3", "pack ==1.1, ==1.3"]
# In conjunction with the "dynamic" option above in the "project"
# section, this tells the build system to add any dependencies
# specified in requirements.txt.
[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}

[project.scripts]
my-script = "my_package.module:function"
# Where can someone find out more about your project?
[project.urls]
Homepage = "https://github.com/ttan06/baseball_travels"
Issues = "https://github.com/ttan06/baseball_travels/issues"

0 comments on commit 8fbdcca

Please sign in to comment.