Skip to content

feat: implement smart, project-aware gitignore generator with user pe… #10

feat: implement smart, project-aware gitignore generator with user pe…

feat: implement smart, project-aware gitignore generator with user pe… #10

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv pip install --system -e .
- name: Lint with ruff
run: |
uv pip install --system ruff
ruff check .
- name: Format with ruff
run: |
ruff format . --check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install uv
uv pip install --system -e .
- name: Install pytest and pytest-cov
run: |
uv pip install --system pytest pytest-cov
- name: Run tests with pytest
run: |
pytest --cov=devguardian --cov-report term-missing
build:
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: |
python -m build
docker:
runs-on: ubuntu-latest
needs: [lint, test]
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag devguardian:latest