mirror of
https://github.com/bcye/structured-wikivoyage-exports.git
synced 2025-09-13 16:34:48 +00:00
Merge branch 'main' into feature/docker
This commit is contained in:
40
.github/workflows/publish-types.yaml
vendored
Normal file
40
.github/workflows/publish-types.yaml
vendored
Normal 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
23
.github/workflows/test-parser.yaml
vendored
Normal 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
|
Reference in New Issue
Block a user