From cd6793cc5711236deb65ede1211599195907a538 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 ++ 2 files changed, 7 insertions(+) diff --git a/.github/workflows/hatch.yml b/.github/workflows/hatch.yml index 52ce4b9..909eab7 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: Create envs + run: hatch env create dev - 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`