Skip to content

Commit de7ab7d

Browse files
committed
update ci and test pkgs
1 parent b57f257 commit de7ab7d

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/main.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,26 @@ jobs:
2121
uses: SimenB/github-actions-cpu-cores@v1
2222

2323
- name: Install mamba
24-
uses: mamba-org/provision-with-micromamba@main
24+
uses: mamba-org/setup-micromamba@v2
2525
with:
2626
environment-file: dev-env.yml
2727
environment-name: dev-env
28-
micromamba-version: "1.4.1"
28+
init-shell: >-
29+
bash
2930
3031
- name: Install Playwright
32+
shell: bash -el {0}
3133
run: |
3234
playwright install
3335
3436
- name: Install pyjs-code-runner
37+
shell: bash -el {0}
3538
run: |
36-
micromamba activate dev-env
3739
python -m pip install . --no-deps
3840
3941
- name: Run Tests
42+
shell: bash -el {0}
4043
run: |
41-
micromamba activate dev-env
4244
pytest -s
4345
4446
@@ -58,12 +60,12 @@ jobs:
5860
micromamba-version: "1.4.1"
5961

6062
- name: Install pyjs-code-runner
63+
shell: bash -el {0}
6164
run: |
62-
micromamba activate dev-env
6365
python -m pip install .
6466
playwright install
6567
6668
- name: Run Tests
69+
shell: bash -el {0}
6770
run: |
68-
micromamba activate dev-env
6971
pytest -s

dev-env-pip.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ channels:
44
dependencies:
55
- python
66
- pip
7-
- emsdk
87
- pytest

test/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def env_prefix():
2929
"-c https://repo.mamba.pm/emscripten-forge -c https://repo.mamba.pm/conda-forge"
3030
)
3131
cmd = [
32-
f"""$MAMBA_EXE create {channels} --yes --prefix {env_prefix} --platform=emscripten-32 python numpy pyjs """
32+
f"""$MAMBA_EXE create {channels} --yes --prefix {env_prefix} --platform=emscripten-32 python numpy pyjs>=2.7.0"""
3333
]
3434

3535
ret = subprocess.run(cmd, shell=True)

0 commit comments

Comments
 (0)