-
Notifications
You must be signed in to change notification settings - Fork 9
60 lines (49 loc) · 1.26 KB
/
workflow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Test
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
jobs:
test_empack:
runs-on: ubuntu-latest
env:
TARGET_PLATFORM: emscripten-wasm32
GITHUB_OWNER: 'emscripten-forge'
strategy:
fail-fast: false
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci_env.yml
cache-environment: true
- name: Install empack
shell: bash -l {0}
run: |
pip install .
- name: Install Playwright
shell: bash -l {0}
run: |
playwright install
- name: Install pyjs-code-runner
shell: bash -l {0}
run: |
python -m pip install git+https://github.com/emscripten-forge/pyjs-code-runner --no-deps --ignore-installed
- name: Run pytest
shell: bash -l {0}
run: |
pytest -v -s tests/
- name: Run cli from terminal
shell: bash -l {0}
run: |
empack --help
empack pack --help