Skip to content

feat(repo): Added Python and TypeScript packages for RFC 9457 Problem Details #5

feat(repo): Added Python and TypeScript packages for RFC 9457 Problem Details

feat(repo): Added Python and TypeScript packages for RFC 9457 Problem Details #5

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
python:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Install dependencies
working-directory: python
run: |
uv pip install --system -e ".[dev]"
- name: Run tests
working-directory: python
run: |
pytest tests/ -v --cov=jentic.problem_details --cov-report=term-missing
typescript:
name: TypeScript
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: typescript/package-lock.json
- name: Install dependencies
working-directory: typescript
run: npm ci
- name: Build
working-directory: typescript
run: npm run build
- name: Run tests
working-directory: typescript
run: npm test
- name: Type check
working-directory: typescript
run: npm run typecheck