Skip to content

Fix bundling of .so files #101

Fix bundling of .so files

Fix bundling of .so files #101

Workflow file for this run

name: Main CI workflow
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install -e ".[dev]"
- name: Test package without examples (no node required)
run: |
pytest pyodide_pack/
- uses: actions/setup-node@v3
with:
node-version: "20.6.1"
- name: Install the pyodide npm package
run: |
npm install pyodide@0.24.1
- name: Test package + examples
run: |
pytest --cov=. -n 2 --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
deploy:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
environment: PyPi-deploy
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v3
with:
python-version: 3.10.2
- name: Install requirements and build wheel
shell: bash -l {0}
run: |
python -m pip install build twine
python -m build .
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}