-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (45 loc) · 1.44 KB
/
build-pyodide.yml
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
name: Build PyOdide
on:
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@master
with:
python-version: 3.11.2
- run: |
pip install pyodide-build>=0.23.0
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
- uses: mymindstorm/setup-emsdk@v12
with:
version: ${{ env.EMSCRIPTEN_VERSION }}
- run: pyodide build
- name: set up node
uses: actions/setup-node@master # v3.6.0
with:
node-version: ${{ env.NODE_VERSION }}
- name: Set up Pyodide virtual environment
run: |
pyodide venv .venv-pyodide
source .venv-pyodide/bin/activate
pip install dist/*.whl
pip install numpy
pip install pandas
pip install pytest
pip install hypothesis
- name: Test
run: |
source .venv-pyodide/bin/activate
pytest test
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-1
- name: Copy to AWS s3
run: |
aws s3 cp ./dist s3://flexatone/packages/ --exclude "*" --include "*.whl" --recursive