Skip to content

chore: adopt mg-tools v0.9.17 (.github templates + gitignore) #8

chore: adopt mg-tools v0.9.17 (.github templates + gitignore)

chore: adopt mg-tools v0.9.17 (.github templates + gitignore) #8

Workflow file for this run

name: ci

Check failure on line 1 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ci.yml

Invalid workflow file

(Line: 9, Col: 9): Unrecognized function: 'hashFiles'. Located at position 1 within expression: hashFiles('pyproject.toml') != '', (Line: 20, Col: 9): Unrecognized function: 'hashFiles'. Located at position 1 within expression: hashFiles('package.json') != ''
on:
pull_request:
push:
branches: [main]
jobs:
python:
if: hashFiles('pyproject.toml') != ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- run: uv sync --all-extras
- run: uv run ruff check .
- run: uv run ruff format --check .
- run: uv run pytest -x
node:
if: hashFiles('package.json') != ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci
- run: npm run lint --if-present
- run: npm test