Skip to content

Commit c5f1bea

Browse files
authored
deps: visyn_core 14 (#883)
* deps: visyn_core 14 * Update build.yml
1 parent 7c04e0c commit c5f1bea

File tree

639 files changed

+1835
-1552
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

639 files changed

+1835
-1552
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('visyn_scripts/config/eslintrc.template')({ tsconfigRootDir: __dirname });
1+
module.exports = require('visyn_scripts/config/eslintrc.template')({ tsconfigRootDir: __dirname, optimizeImports: true });

.github/workflows/build.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,53 @@
1-
name: build
1+
name: Build repository
22

33
on:
44
workflow_dispatch:
55
inputs:
6+
run_parallel:
7+
description: 'Run jobs in parallel'
8+
required: false
9+
type: boolean
10+
default: true
11+
self_hosted:
12+
description: 'Run on self-hosted runner'
13+
required: false
14+
type: boolean
15+
default: true
616
cypress:
717
description: 'Run cypress'
818
required: false
919
type: boolean
1020
default: false
21+
playwright:
22+
description: 'Run playwright'
23+
required: false
24+
type: boolean
25+
default: false
26+
playwright_spec_param:
27+
type: string
28+
description: 'Run specific playwright test(s) (optional). Example: landing-page.spec.ts'
29+
required: false
1130
push:
31+
pull_request:
32+
types: [opened, ready_for_review]
33+
pull_request_review:
34+
types: [submitted]
1235

1336
jobs:
1437
build:
38+
if: ${{ github.event_name != 'pull_request_review' || github.event.review.state == 'approved' }}
1539
uses: datavisyn/github-workflows/.github/workflows/build-node-python.yml@main
1640
secrets: inherit
41+
# Boolean inputs are tricky in Github Actions. Their default is not honored in non-workflow-dispatch actions, so setting a default on push is tricky: https://stackoverflow.com/a/73495922
42+
# To get on push true, use !contains(inputs.myInput, 'false')
43+
# To get on push false, use contains(inputs.myInput, 'true')
1744
with:
45+
run_parallel: ${{ !contains(inputs.run_parallel, 'false') }} # true except if box is not checked
46+
runs_on: ${{ (!contains(inputs.self_hosted, 'false') && 'self-hosted') || null }} # self-hosted except if box is not checked
1847
cypress_enable: true
19-
cypress_run_because_flag: ${{ inputs.cypress == true }}
48+
cypress_run_because_flag: ${{ inputs.cypress == true || github.event_name == 'pull_request' || github.event.review.state == 'approved' }}
49+
cypress_runs_on: ${{ (!contains(inputs.self_hosted, 'false') && 'self-hosted') || null }} # self-hosted except if box is not checked
50+
playwright_enable: false
51+
playwright_run_because_flag: ${{ inputs.playwright == true || github.event_name == 'pull_request' || github.event.review.state == 'approved' }}
52+
playwright_spec_param: ${{ inputs.playwright_spec_param }}
53+
playwright_runs_on: ${{ (!contains(inputs.self_hosted, 'false') && 'self-hosted') || null }} # self-hosted except if box is not checked

.github/workflows/release.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
1-
name: release
1+
name: Create a new release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release_version:
7+
type: string
8+
description: 'The next version to release'
9+
required: true
10+
pull_request:
11+
types: [closed]
12+
branches:
13+
- 'main'
214

3-
on: workflow_dispatch
4-
515
jobs:
6-
release:
16+
create_release_pr:
17+
if: ${{ github.event_name == 'workflow_dispatch' }}
718
uses: datavisyn/github-workflows/.github/workflows/release-source.yml@main
8-
secrets: inherit
19+
secrets: inherit
20+
with:
21+
release_version: ${{ inputs.release_version }}
22+
is_helm_chart: false
23+
24+
post_merge_release:
25+
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'Release') }}
26+
uses: datavisyn/github-workflows/.github/workflows/release-post-merge.yml@main
27+
secrets: inherit
28+
with:
29+
pr_title: ${{ github.event.pull_request.title }}
30+
pr_number: ${{ github.event.pull_request.number }}
31+
repository_owner: ${{ github.repository_owner }}
32+
repository_name: ${{ github.event.repository.name }}

Makefile

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,19 @@ documentation:
3939

4040
.PHONY: install ## Install the requirements
4141
install:
42-
pip install -e .
42+
@if [ ! -z "${CI}" ]; then \
43+
uv pip install -e . --system --upgrade; \
44+
else \
45+
uv pip install -e . --upgrade; \
46+
fi
4347

4448
.PHONY: develop ## Set up the development environment
4549
develop:
46-
pip install -e .[develop]
50+
@if [ ! -z "${CI}" ]; then \
51+
uv pip install -e ".[develop]" --system --upgrade; \
52+
else \
53+
uv pip install -e ".[develop]" --upgrade; \
54+
fi
4755

4856
.PHONY: env_encrypt ## Encrypts the current ./<app>/.env
4957
env_encrypt:

cypress/component/component-health-check.cy.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import * as React from 'react';
2+
23
import { VisynAppProvider } from 'visyn_core/app';
4+
35
import { MainApp } from '../../src/demo/MainApp';
46
// Load the phovea_registry to ensure all extension points (like locales) are loaded.
57
import '../../src/phovea_registry';

cypress/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "./dist",
55
"sourceMap": false,
6+
"declarationMap": false,
67
"types": [
78
"cypress"
89
]

dist/ATDPApplication.d.ts

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ATDPApplication.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ATDPApplication.js

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/ATDPApplication.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)