From 0b1b8663d70d90a1468e201a5fab235a95cd0eaa Mon Sep 17 00:00:00 2001 From: David Kun Date: Thu, 4 Jul 2024 12:49:23 -0400 Subject: [PATCH] Add note about workflow to trigger workflow --- .github/workflows/hatch.yml | 5 +++++ hatch-demo/README.md | 2 ++ hatch-demo/pyproject.toml | 5 ++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/hatch.yml b/.github/workflows/hatch.yml index 52ce4b9..1e50bae 100644 --- a/.github/workflows/hatch.yml +++ b/.github/workflows/hatch.yml @@ -3,6 +3,9 @@ on: push: paths: - 'hatch-demo/**' +defaults: + run: + working-directory: ./hatch-demo jobs: test: @@ -15,6 +18,8 @@ jobs: python-version: '3.12' - name: Install Hatch uses: pypa/hatch@install + - name: Build package + run: hatch build - name: Lint run: hatch run dev:check - name: Run tests diff --git a/hatch-demo/README.md b/hatch-demo/README.md index 105f4c8..86a1096 100644 --- a/hatch-demo/README.md +++ b/hatch-demo/README.md @@ -99,6 +99,8 @@ run = "python src/hatch_demo/demo.py" $ hatch run default:run ``` +13. Add [hatch-based GH workflow](../.github/workflows/hatch.yml) to check linting and run tests + ## Notes * Not sure how to install the project so that it can called like `python -m hatch_demo` diff --git a/hatch-demo/pyproject.toml b/hatch-demo/pyproject.toml index 1c8d7aa..17479a1 100644 --- a/hatch-demo/pyproject.toml +++ b/hatch-demo/pyproject.toml @@ -20,7 +20,10 @@ classifiers = [ "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] -dependencies = [] +dependencies = [ + "polars", + "requests" +] [project.urls] Source = "https://github.com/davidkun/hatch-vs-poetry-vs-rye"