Skip to content

Run workflows if they are modified #10

Run workflows if they are modified

Run workflows if they are modified #10

Workflow file for this run

name: Hatch workflow
on:
push:
paths:
- 'hatch-demo/**'
- '.github/workflows/hatch.yml'
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