Publish 5.0.5 #367
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/cancel-workflow-action@0.9.1 | |
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 | |
# Remove after https://github.com/emscripten-forge/pyjs-code-runner/pull/15 is merged. | |
- name: Install appdirs | |
shell: bash -l {0} | |
run: | | |
python -m pip install appdirs | |
- 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 |