Skip to content

Commit

Permalink
add test dummy code
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxianpeng committed Feb 20, 2024
1 parent 243ed66 commit 3798cb9
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
test-sphinx:
uses: ./.github/workflows/sphinx.yml
with:
path-to-doc: .
path-to-doc: src
test-py-coverage:
uses: ./.github/workflows/py-coverage.yml
test-py-publish:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
venv
testing/dist/
testing/*.egg-info/
3 changes: 3 additions & 0 deletions testing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Test reusable workflows

This folder code is used for testing reusable workflow under `.github/workflows/`.
8 changes: 8 additions & 0 deletions testing/build/lib/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""test reusable workflows"""

def dummy():
print("dummy function.")


if "__main__" == __name__:
dummy()
Empty file added testing/docs/.keep
Empty file.
8 changes: 8 additions & 0 deletions testing/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"""test reusable workflows"""

def dummy():
print("dummy function.")


if "__main__" == __name__:
dummy()
20 changes: 20 additions & 0 deletions testing/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[build-system]
requires = ["setuptools>=61", "setuptools-scm"]
build-backend = "setuptools.build_meta"

[project]
name = "dummy"
description = "dummy "
keywords = ["dummy", ".github", "reusable", "workflows"]
license = {text = "MIT License"}
authors = [
{ name = "Peter Shen", email = "[email protected]" },
]
classifiers = [
# https://pypi.org/pypi?%3Aaction=list_classifiers
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Topic :: Software Development :: Build Tools",
]
dynamic = ["version"]
Empty file added testing/tests/mian_test.py
Empty file.

0 comments on commit 3798cb9

Please sign in to comment.