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 0b1b866
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
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: Build package
run: hatch build
- 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
5 changes: 4 additions & 1 deletion hatch-demo/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 0b1b866

Please sign in to comment.