Skip to content

Use rev-parse is-inside-work-tree to check if in git repo #40

Use rev-parse is-inside-work-tree to check if in git repo

Use rev-parse is-inside-work-tree to check if in git repo #40

name: Build and test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install --upgrade pip build
- run: python -m build
- run: pip install -e '.[dev]'
- run: pytest
- run: pre-commit run --all-files