Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/check-sdk-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
if [ -n "$EXISTS" ]; then
echo "Error: Version $PKG_VERSION of $PKG_NAME already exists on PyPI." >&2
echo "This change will NOT trigger a new release. Please bump the version in pyproject.toml." >&2
sleep 1
exit 1
else
echo "Version $PKG_VERSION does not exist on PyPI. This change will trigger a new release."
Expand Down
76 changes: 0 additions & 76 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

55 changes: 11 additions & 44 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
# Unified CodeQL security scanning for both Python and JavaScript/TypeScript.
# Replaces the former separate codeql-analysis.yml workflow.

name: "CodeQL"

on:
Expand All @@ -23,16 +15,15 @@ on:
schedule:
- cron: '30 21 * * 0'

concurrency:
group: ${{ github.workflow }}-${{ matrix.language }}-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
actions: read
contents: read
Expand All @@ -41,44 +32,20 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ 'python' ]
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
language: [ 'javascript-typescript', 'python' ]

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,20 @@ on:
jobs:
build-and-push:
runs-on: ubuntu-latest
timeout-minutes: 60
defaults:
run:
working-directory: api

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@ name: Lint

on: [push]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install modules
run: npm install
run: npm ci
- name: Run ESLint
run: npm run lint
22 changes: 0 additions & 22 deletions .github/workflows/netlify-docs-build.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
prettier-check:
runs-on: ubuntu-latest
Expand All @@ -20,8 +24,8 @@ jobs:
node-version: "22"
cache: "npm"

- name: Install Prettier
run: npm install -g prettier
- name: Install dependencies
run: npm ci

- name: Check Prettier formatting
run: npm run format:check
16 changes: 5 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,21 @@ on:

jobs:
publish:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest]
runs-on: macos-latest
timeout-minutes: 30

steps:
- name: Checkout git repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Node and NPM
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm

- name: Install dependencies
run: npm install
run: npm ci

- name: Build default web bundle
run: npm run build
Expand Down Expand Up @@ -53,18 +50,15 @@ jobs:
run: |
VERSION=$(node -p "require('./package.json').version")
echo "version=${VERSION}" >> $GITHUB_OUTPUT
shell: bash

- name: Ensure GitHub Release exists
run: |
gh release view ${{ github.ref_name }} >/dev/null 2>&1 || gh release create ${{ github.ref_name }} --generate-notes --verify-tag --draft
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash

- name: Upload static web assets
run: |
gh release upload ${{ github.ref_name }} release/transformerlab_web.tar.gz release/transformerlab_web_multiuser.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
14 changes: 7 additions & 7 deletions .github/workflows/pytest-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@ on:
paths:
- "lab-sdk/**"

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pytest:
runs-on: ubuntu-latest
defaults:
run:
working-directory: lab-sdk
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "3.10"

- name: Set up uv
uses: astral-sh/setup-uv@v4

- name: Install project with uv
run: |
uv venv --python ${{ matrix.python-version }}
uv venv --python 3.10
uv pip install -e .

- name: Run SDK tests (uv)
Expand Down
Loading
Loading