Skip to content

Init commit

Init commit #2

Workflow file for this run

name: Test
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
- name: Install UV
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
uv venv
source .venv/bin/activate
uv pip install -e ".[test]"
uv pip install ruff
- name: Lint with ruff
run: |
ruff check .
ruff format --check .
- name: Run tests
run: |
pytest tests/ -v --cov=gitwalk