Skip to content
Merged
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
60 changes: 24 additions & 36 deletions .github/workflows/test_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Test and Release

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
pre-commit:
Expand All @@ -16,7 +16,7 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.8.12"
version: "0.9.22"
enable-cache: true
- name: Install the project
run: uv sync --all-extras --dev
Expand All @@ -35,40 +35,31 @@ jobs:
matrix:
python-version: ["3.10"]
config:
- {
name: "Linux",
os: ubuntu-latest
}
- {
name: "MacOSX",
os: macos-latest
}
- {
name: "Windows",
os: windows-latest
}
- { name: "Linux", os: ubuntu-latest }
- { name: "MacOSX", os: macos-latest }
- { name: "Windows", os: windows-latest }

defaults:
run:
shell: bash

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.8.12"
enable-cache: true
- name: Install and Run Tests
run: |
uv sync --dev
uv pip install -r tests/requirements.txt
uv run pytest -s ./tests
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.9.22"
enable-cache: true
- name: Install and Run Tests
run: |
uv sync --dev
uv pip install -r tests/requirements.txt
uv run pytest -s ./tests

test-npm-build:
runs-on: ubuntu-latest
Expand All @@ -89,12 +80,9 @@ jobs:
npm run build

release:
needs: [
pre-commit,
pytest,
test-npm-build,
]
needs: [pre-commit, pytest, test-npm-build]
runs-on: ubuntu-latest
if: github.event_name == 'push'
environment: release
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ version_variables = [
"src/trame_flow/__init__.py:__version__",
]

build_command = "uv build"
build_command = "pip install uv && uv build"

[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
Expand Down
4 changes: 1 addition & 3 deletions tests/test_import.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
def test_import():
# For components only, the CustomWidget is also importable via trame
from trame.widgets.trame_flow import NodeEditor

from trame.widgets.flow import NodeEditor
from trame_flow.widgets.flow import NodeEditor # noqa: F401,F811
2 changes: 1 addition & 1 deletion vue-components/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}