set skip-worktree on version file #14
Workflow file for this run
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: Run tests | |
# TODO: switch this to run on PRs | |
on: [push] | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
fetch-tags: true | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install hatch | |
run: | | |
python -m pip install hatch | |
- name: Lint | |
run: | | |
hatch fmt || true | |
- name: Test | |
run: | | |
hatch run +py=${{ matrix.python-version }} test:pytest | |
- name: Build dist | |
run: | | |
hatch build |