forked from statsmodels/statsmodels
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 1017 Bytes
/
Copy pathemscripten.yml
File metadata and controls
38 lines (32 loc) · 1017 Bytes
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
name: Test Emscripten/Pyodide build using CIBW
on:
pull_request:
branches:
- main
- maintenance/**
env:
FORCE_COLOR: 3
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build-wasm-emscripten:
permissions:
contents: read # to fetch code (actions/checkout)
name: Pyodide test
runs-on: ubuntu-22.04
# To enable this workflow on a fork, comment out:
if: github.repository == 'statsmodels/statsmodels'
steps:
- name: Checkout statsmodels
uses: actions/checkout@v6
with:
submodules: recursive
fetch-tags: true
persist-credentials: false
- uses: pypa/cibuildwheel@v3.4.1
env:
CIBW_PLATFORM: pyodide
CIBW_BUILD: cp312-*
CIBW_TEST_COMMAND: python -c "import statsmodels; statsmodels.test(['-sra', '--skip-examples', '--skip-slow'], exit=True)"
CIBW_TEST_REQUIRES: pytest pytest-cov matplotlib