diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7422e483..9da60704 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,8 @@ on: jobs: tests: runs-on: ${{ matrix.os }} + env: + RUN_SLOW_TESTS: 1 strategy: fail-fast: false matrix: @@ -59,14 +61,14 @@ jobs: - run: pnpm test:ci - run: sh ./scripts/run_tests.sh unzip - - name: Run simple - run: sh ./scripts/run_tests.sh simple - if: github.event_name != 'schedule' - - name: Run all run: sh ./scripts/run_tests.sh all if: github.event_name != 'schedule' + - name: Run simple + run: sh ./scripts/run_tests.sh simple + if: github.event_name != 'schedule' + - name: Run launch run: sh ./scripts/run_tests.sh launch if: github.event_name == 'schedule' diff --git a/__tests__/vision-classification.spec.js b/__tests__/vision-classification.spec.js index 13cdfc73..c2c59b2b 100644 --- a/__tests__/vision-classification.spec.js +++ b/__tests__/vision-classification.spec.js @@ -43,6 +43,9 @@ test('vision classification simple', async () => { test('vision classification all', async () => { await page.selectOption('select', 'template-vision-classification') + await page.check('#include_test-checkbox') + expect(await page.isChecked('#include_test-checkbox')).toBeTruthy() + await page.waitForSelector('text=README.md') await page.click(':nth-match(:text("Training"), 2)') diff --git a/__tests__/vision-dcgan.spec.js b/__tests__/vision-dcgan.spec.js index 81753a2e..127458f2 100644 --- a/__tests__/vision-dcgan.spec.js +++ b/__tests__/vision-dcgan.spec.js @@ -43,6 +43,9 @@ test('vision dcgan simple', async () => { test('vision dcgan all', async () => { await page.selectOption('select', 'template-vision-dcgan') + await page.check('#include_test-checkbox') + expect(await page.isChecked('#include_test-checkbox')).toBeTruthy() + await page.waitForSelector('text=README.md') await page.click(':nth-match(:text("Training"), 2)') diff --git a/__tests__/vision-segmentation.spec.js b/__tests__/vision-segmentation.spec.js index 84ab3e10..ef7c2fff 100644 --- a/__tests__/vision-segmentation.spec.js +++ b/__tests__/vision-segmentation.spec.js @@ -43,6 +43,9 @@ test('vision segmentation simple', async () => { test('vision segmentation all', async () => { await page.selectOption('select', 'template-vision-segmentation') + await page.check('#include_test-checkbox') + expect(await page.isChecked('#include_test-checkbox')).toBeTruthy() + await page.waitForSelector('text=README.md') await page.click(':nth-match(:text("Training"), 2)') diff --git a/scripts/requirements.txt b/scripts/requirements.txt index 7a659699..e0c29e52 100644 --- a/scripts/requirements.txt +++ b/scripts/requirements.txt @@ -4,3 +4,4 @@ pytorch-ignite>=0.4.2 pyyaml albumentations image_dataset_viz +pytest diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index 84eeee1e..19385ad7 100644 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -27,6 +27,7 @@ run_all() { for dir in $(find ./dist-tests/*-all -type d) do cd $dir + pytest -vra --color=yes --tb=short test_*.py python main.py --data_path ~/data cd $CWD done diff --git a/src/components/TabTemplates.vue b/src/components/TabTemplates.vue index c6f298f8..d0847c83 100644 --- a/src/components/TabTemplates.vue +++ b/src/components/TabTemplates.vue @@ -10,16 +10,23 @@ @change.prevent="downloadTemplates" /> +
+ +