Fix: Do not treat mount points as packages in the empack lock (#126) #404
This file contains hidden or 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/[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 | |
| # 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 |