Add note about workflow to trigger workflow #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Hatch workflow | |
on: | |
push: | |
paths: | |
- 'hatch-demo/**' | |
defaults: | |
run: | |
working-directory: ./hatch-demo | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
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 | |
run: hatch run dev:test |