Skip to content

Release v1.0.3: Critical fixes for list_drafts and multiple tool improvements #14

Release v1.0.3: Critical fixes for list_drafts and multiple tool improvements

Release v1.0.3: Critical fixes for list_drafts and multiple tool improvements #14

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
node-version: ['18.x', '20.x']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
playwright install chromium
- name: Install Node dependencies
run: npm install
- name: Run Python linting
run: |
black --check src tests
ruff check src
- name: Run type checking
run: mypy src
- name: Run Python tests
run: |
pytest -v --cov=src --cov-report=xml --cov-report=term -m "not integration and not requires_auth"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run security checks
uses: pypa/gh-action-pip-audit@v1.1.0
with:
inputs: .