-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update to latest visyn_scripts
- Loading branch information
1 parent
d0ba470
commit bf7d384
Showing
16 changed files
with
14,171 additions
and
10,238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: build nightly | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '15 1 * * *' | ||
|
||
jobs: | ||
build-main: | ||
uses: datavisyn/github-workflows/.github/workflows/build-node-python.yml@main | ||
secrets: inherit | ||
with: | ||
playwright_enable: true | ||
playwright_run_because_flag: true | ||
branch: main | ||
build-develop: | ||
uses: datavisyn/github-workflows/.github/workflows/build-node-python.yml@main | ||
secrets: inherit | ||
with: | ||
playwright_enable: true | ||
playwright_run_because_flag: true | ||
branch: develop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
yarnPath: .yarn/releases/yarn-3.2.2.cjs | ||
compressionLevel: mixed | ||
|
||
enableGlobalCache: false | ||
|
||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.2.2.cjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { defineConfig, devices } from '@playwright/test'; | ||
|
||
/** | ||
* See https://playwright.dev/docs/test-configuration. | ||
*/ | ||
export default defineConfig({ | ||
testDir: './playwright', | ||
fullyParallel: true, | ||
/* Fail the build on CI if you accidentally left test.only in the source code. */ | ||
forbidOnly: !!process.env.CI, | ||
retries: process.env.CI ? 0 : 0, | ||
workers: process.env.CI ? 2 : 2, | ||
reporter: process.env.CI ? [['github'], ['list'], ['html', { open: 'never' }]] : [['list'], ['html', { open: 'never' }]], | ||
use: { | ||
baseURL: 'http://127.0.0.1:8080', | ||
testIdAttribute: 'data-testid', | ||
viewport: { width: 1920, height: 1080 }, | ||
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */ | ||
trace: 'on-first-retry', | ||
/* Capture screenshot after each test failure: https://playwright.dev/docs/test-use-options#recording-options */ | ||
screenshot: 'only-on-failure', | ||
/* Capture video */ | ||
// video: 'retain-on-failure', | ||
}, | ||
expect: { timeout: 20000 }, | ||
timeout: 1000 * 60, | ||
globalTimeout: 8 * 60 * 1000, | ||
projects: [ | ||
{ name: 'setup', testMatch: /.*\.setup\.ts/ }, | ||
{ | ||
name: 'chromium', | ||
use: { ...devices['Desktop Chrome'], viewport: { width: 1920, height: 1080 }, storageState: 'playwright/.auth/user.json' }, | ||
dependencies: ['setup'], | ||
}, | ||
], | ||
/* Run your local dev server before starting the tests */ | ||
webServer: [ | ||
{ | ||
command: 'yarn start dev_server_only=true', | ||
url: 'http://127.0.0.1:8080', | ||
reuseExistingServer: !process.env.CI, | ||
}, | ||
{ | ||
command: 'make start', | ||
url: 'http://127.0.0.1:9000/health', | ||
reuseExistingServer: !process.env.CI, | ||
}, | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { test } from '@playwright/test'; | ||
|
||
test.describe('App', () => { | ||
test('App test 01', async ({ page }) => { | ||
await page.goto('/'); | ||
|
||
await page.getByText('Campaign name').fill('Test campaign name'); | ||
await page.getByText('Campaign description').fill('Test campaign description'); | ||
await page.getByText('Create campaign').click(); | ||
await page.getByText('Delete').click(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { test as setup } from '@playwright/test'; | ||
|
||
const authFile = 'playwright/.auth/user.json'; | ||
|
||
setup('authenticate', async ({ request }) => { | ||
await request.post('/api/login', { | ||
form: { | ||
username: 'admin', | ||
password: 'admin', | ||
}, | ||
}); | ||
await request.storageState({ path: authFile }); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
visyn_core>=7.0.1,<8.0.0 | ||
pandas==2.0.1 | ||
sqlmodel==0.0.8 | ||
sse-starlette==1.6.1 | ||
sse-starlette==1.6.1 | ||
visyn_core>=10.0.3,<11.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Or from '@reduxjs/toolkit/query' if not using the auto-generated hooks | ||
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'; | ||
|
||
// initialize an empty api service that we'll inject endpoints into later as needed | ||
export const baseApi = createApi({ | ||
reducerPath: 'api', | ||
baseQuery: fetchBaseQuery({ baseUrl: '/' }), | ||
endpoints: () => ({}), | ||
}); |
Oops, something went wrong.