Skip to content

Bump actions/cache from 4 to 5 (#20) #35

Bump actions/cache from 4 to 5 (#20)

Bump actions/cache from 4 to 5 (#20) #35

Workflow file for this run

# .github/workflows/ci.yml
# CI/CD workflow for Codecat
# This workflow runs on every push or pull request to the main branch.
# It checks code formatting, linting, type safety, and runs all tests.
name: CI/CD
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
test:
name: Test on ${{ matrix.os }} / Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v5
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run quality checks
run: |
black --check .
flake8 .
pyright .
- name: Run test suite
run: pytest