Skip to content

Commit

Permalink
Add note about workflow to trigger workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkun committed Jul 4, 2024
1 parent 79451b6 commit cd6793c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/hatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
paths:
- 'hatch-demo/**'
defaults:
run:
working-directory: ./hatch-demo

jobs:
test:
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions hatch-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit cd6793c

Please sign in to comment.