Merge branch 'main' into feature/docker

This commit is contained in:
Bruce
2025-04-30 22:10:55 +02:00
committed by GitHub
15 changed files with 5793 additions and 0 deletions

40
.github/workflows/publish-types.yaml vendored Normal file
View File

@@ -0,0 +1,40 @@
# Example from https://docs.github.com/en/actions/use-cases-and-examples/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry
name: Publish Types Package to npmjs
on:
push:
tags:
- "types/*"
defaults:
run:
working-directory: types
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: "pnpm"
cache-dependency-path: "types/pnpm-lock.yaml"
registry-url: "https://registry.npmjs.org"
- run: pnpm install --frozen-lockfile
- run: pnpm tsc
- run: pnpm publish --provenance --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

23
.github/workflows/test-parser.yaml vendored Normal file
View File

@@ -0,0 +1,23 @@
on:
pull_request:
jobs:
run-tests:
name: Unit-Test Parser
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Install the project
run: uv sync --locked --dev
- name: Run tests
run: PYTHONPATH=. uv run pytest