Skip to content

Add git-json generator and CLI tool with initial setup #18

Add git-json generator and CLI tool with initial setup

Add git-json generator and CLI tool with initial setup #18

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/[email protected]
- name: Install dependencies
run: poetry install --with dev
- name: Run linting
run: poetry run ruff check .
- name: Run tests
run: poetry run pytest --cov=git_json --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
- name: Test CLI
run: poetry run git-json --package-path test-output