update github workflows

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2026-05-27 15:35:17 +02:00
parent 0125968885
commit b366ea8000
4 changed files with 129 additions and 38 deletions
+75
View File
@@ -0,0 +1,75 @@
name: lint
on:
- push
- pull_request
jobs:
lint:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
flags:
- --test --uv
steps:
- name: checkout-code
uses: actions/checkout@main
- name: install-uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: setup-python
uses: actions/setup-python@main
with:
python-version: 3.12.3
- name: install-python-deps
run: uv pip install ruff pylint pre-commit
- name: setup-node
uses: actions/setup-node@main
with:
node-version: 24
- name: install-pnpm
run: npm install -g pnpm
- name: pnpm-store-path
id: pnpm-store
run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: cache-pnpm-store
uses: actions/cache@v4
with:
path: ${{ steps.pnpm-store.outputs.STORE_PATH }}
key: pnpm-store-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
pnpm-store-
- name: install-node-deps
run: pnpm install --frozen-lockfile
- name: pre-commit
uses: pre-commit-ci/lite-action@v1.1.0
if: always()
with:
msg: apply code formatting and linting auto-fixes
- name: eslint
run: pnpm run eslint
- name: tsc
run: pnpm run tsc
- name: ruff
run: uv run ruff check
- name: pylint
run: uv run pylint *.py modules/ pipelines/ scripts/ extensions-builtin/
- name: test
run: |
export COMMANDLINE_ARGS="${{ matrix.flags }}"
uv run python launch.py
-37
View File
@@ -1,37 +0,0 @@
name: lint-on-push
on:
- push
- pull_request
jobs:
lint:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
flags:
- --debug --test --uv
- --debug --test
steps:
- name: checkout-code
uses: actions/checkout@main
- name: setup-python
uses: actions/setup-python@main
with:
python-version: 3.12.3
cache: pip
cache-dependency-path: requirements.txt
- name: install-pylint
run: |
python -m pip install --upgrade pip
pip install pylint
- name: pre-commit
uses: pre-commit-ci/lite-action@v1.1.0
if: always()
with:
msg: apply code formatting and linting auto-fixes
- name: test-startup
run: |
export COMMANDLINE_ARGS="${{ matrix.flags }}"
python launch.py
+53
View File
@@ -0,0 +1,53 @@
name: github-pages
on:
push:
branches:
- pages
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: pages-checkout
uses: actions/checkout@v4
- name: pages-build
run: python3 scripts/build-pages.py
- name: pages-ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: pages-dependencies
run: bundle install
- name: pages-site
run: bundle exec jekyll build --destination ./_site
- name: pages-upload
uses: actions/upload-pages-artifact@v3
with:
path: ./_site
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: pages-deploy
id: deployment
uses: actions/deploy-pages@v4
@@ -1,4 +1,4 @@
name: update-readme
name: readme-sponsors
on:
workflow_dispatch: