8000 Move tests, create makefile action to run tests on examples by marimeireles · Pull Request #433 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

Move tests, create makefile action to run tests on examples #433

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
May 26, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
more rearranging
  • Loading branch information
pww217 committed May 26, 2022
commit 1b41a5ae356ff2e7f1fc13493fdaa900735c0383
7 changes: 5 additions & 2 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,13 @@ jobs:
- name: setup Miniconda
uses: conda-incubator/setup-miniconda@v2

- name: Install dependencies
- name: Setup Environment
run: make setup

- name: Test pyscript
- name: Build
run: make build

- name: Test local examples
run: make test

# Deploy to S3
Expand Down
3 changes: 1 addition & 2 deletions pyscriptjs/Makefile
< 6117 td class="blob-num blob-num-expandable" colspan="2"> Expand Down Expand Up
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ env := $(CONDA_ENV)
conda_run := $(CONDA_EXE) run -p $(env)

setup:
npm install
$(CONDA_EXE) env $(shell [ -d $(env) ] && echo update || echo create) -p $(env) --file environment.yml
$(conda_run) playwright install
$(CONDA_EXE) install -c anaconda pytest
@@ -40,8 +41,6 @@ example:

test:
make example
npm install
make build
$(conda_run) pytest -vv $(ARGS) tests/ --log-cli-level=warning

test-py:
Expand Down
0