Move tests, create makefile action to run tests on examples (#433)
* Move tests, create makefile action to run tests on examples * Correct import file for html files * Build environment for tests * Fix the CI * rearrange CI * fix find cmd and make sure we don't delete the folder implicitly * more rearranging * fix folder permissions and custom sed for subfolders * add toga wheels files * re-add missing file * mirror latest changes in alpha ci * fix find cmd * try different fix for find * remove redundant build Co-authored-by: mariana <marianameireles@protonmail.com> Co-authored-by: pww217 <pwilson@anaconda.com> Co-authored-by: Fabio Pliger <fabio.pliger@gmail.com>
11
.github/workflows/build-alpha.yml
vendored
@@ -47,17 +47,12 @@ jobs:
|
|||||||
- name: setup Miniconda
|
- name: setup Miniconda
|
||||||
uses: conda-incubator/setup-miniconda@v2
|
uses: conda-incubator/setup-miniconda@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Setup Environment
|
||||||
run: |
|
run: make setup
|
||||||
npm install
|
|
||||||
make setup
|
|
||||||
|
|
||||||
- name: Test pyscript
|
- name: Build and Test
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
- name: Build pyscript
|
|
||||||
run: make build
|
|
||||||
|
|
||||||
# Deploy to S3
|
# Deploy to S3
|
||||||
- name: Configure AWS credentials
|
- name: Configure AWS credentials
|
||||||
if: github.ref == 'refs/heads/main' # Only deploy on merge into main
|
if: github.ref == 'refs/heads/main' # Only deploy on merge into main
|
||||||
|
|||||||
11
.github/workflows/build-latest.yml
vendored
@@ -55,17 +55,12 @@ jobs:
|
|||||||
- name: setup Miniconda
|
- name: setup Miniconda
|
||||||
uses: conda-incubator/setup-miniconda@v2
|
uses: conda-incubator/setup-miniconda@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Setup Environment
|
||||||
run: |
|
run: make setup
|
||||||
npm install
|
|
||||||
make setup
|
|
||||||
|
|
||||||
- name: Test pyscript
|
- name: Build and Test
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
- name: Build pyscript
|
|
||||||
run: make build
|
|
||||||
|
|
||||||
# Deploy to S3
|
# Deploy to S3
|
||||||
- name: Configure AWS credentials
|
- name: Configure AWS credentials
|
||||||
if: github.ref == 'refs/heads/main' # Only deploy on merge into main
|
if: github.ref == 'refs/heads/main' # Only deploy on merge into main
|
||||||
|
|||||||
1
.gitignore
vendored
@@ -51,6 +51,7 @@ coverage.xml
|
|||||||
*.py,cover
|
*.py,cover
|
||||||
.hypothesis/
|
.hypothesis/
|
||||||
.pytest_cache/
|
.pytest_cache/
|
||||||
|
pyscriptjs/examples
|
||||||
|
|
||||||
# Translations
|
# Translations
|
||||||
*.mo
|
*.mo
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 212 KiB After Width: | Height: | Size: 212 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 74 KiB After Width: | Height: | Size: 74 KiB |
|
Before Width: | Height: | Size: 36 KiB After Width: | Height: | Size: 36 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |