diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e10809f..8c89667 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: diff --git a/.gitignore b/.gitignore index 5ceb386..fde2934 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ venv +testing/dist/ +testing/*.egg-info/ diff --git a/testing/README.md b/testing/README.md new file mode 100644 index 0000000..5947acf --- /dev/null +++ b/testing/README.md @@ -0,0 +1,3 @@ +# Test reusable workflows + +This folder code is used for testing reusable workflow under `.github/workflows/`. diff --git a/testing/build/lib/main.py b/testing/build/lib/main.py new file mode 100644 index 0000000..8272678 --- /dev/null +++ b/testing/build/lib/main.py @@ -0,0 +1,8 @@ +"""test reusable workflows""" + +def dummy(): + print("dummy function.") + + +if "__main__" == __name__: + dummy() diff --git a/testing/docs/.keep b/testing/docs/.keep new file mode 100644 index 0000000..e69de29 diff --git a/testing/main.py b/testing/main.py new file mode 100644 index 0000000..8272678 --- /dev/null +++ b/testing/main.py @@ -0,0 +1,8 @@ +"""test reusable workflows""" + +def dummy(): + print("dummy function.") + + +if "__main__" == __name__: + dummy() diff --git a/testing/pyproject.toml b/testing/pyproject.toml new file mode 100644 index 0000000..633de0f --- /dev/null +++ b/testing/pyproject.toml @@ -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 = "xianpeng.shen@gmail.com" }, +] +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"] diff --git a/testing/tests/mian_test.py b/testing/tests/mian_test.py new file mode 100644 index 0000000..e69de29