@@ -14,32 +14,36 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- uses : actions/checkout@v3
17
- - uses : actions/setup-python@v4
17
+
18
+ - uses : conda-incubator/setup-miniconda@v2
18
19
with :
19
- python-version : " 3.11"
20
+ activate-environment : pyodide-env
21
+ environment-file : environment.yml
22
+ channels : conda-forge
23
+
20
24
- name : Install latest pyodide-build and build dependencies
25
+ shell : bash -l {0}
21
26
run : |
22
- pip install git+https://github.com/pyodide/pyodide.git@main#subdirectory=pyodide-build
23
- pip install setuptools --upgrade
24
-
27
+ which python
28
+ python -m pip install git+https://github.com/pyodide/pyodide.git@main#subdirectory=pyodide-build
25
29
pyodide xbuildenv install --download --url http://pyodide-cache.s3-website-us-east-1.amazonaws.com/xbuildenv/dev/xbuildenv.tar.bz2
26
30
27
- sudo apt update
28
- sudo apt install gfortran f2c
29
-
30
31
- name : Check emscripten version
32
+ shell : bash -l {0}
31
33
run : |
32
34
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
35
+
33
36
- uses : mymindstorm/setup-emsdk@v11
34
37
with :
35
38
version : ${{ env.EMSCRIPTEN_VERSION }}
36
39
37
40
- name : Calculate recipes to build (pull_request)
38
41
if : github.event_name == 'pull_request'
39
42
id : calculate_recipes_pr
43
+ shell : bash -l {0}
40
44
run : |
41
- CHANGED_RECIPES=$(python ./tools/calc_diff.py \
42
- --base ${{ github.base_ref }} \
45
+ export CHANGED_RECIPES=$(python ./tools/calc_diff.py \
46
+ --base origin/ ${{ github.base_ref }} \
43
47
--target ${{ github.head_ref }})
44
48
45
49
# If there are no changed recipes, we build only core packages sets
@@ -50,11 +54,13 @@ jobs:
50
54
fi
51
55
52
56
- name : Build recipes (full)
57
+ shell : bash -l {0}
53
58
if : ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[full build]') }}
54
59
run : |
55
60
pyodide build-recipes "*" --install --install-dir=./repodata
56
61
57
62
- name : Build recipes (changed only)
63
+ shell : bash -l {0}
58
64
if : github.event_name == 'pull_request' && !contains(github.event.head_commit.message, '[full build]')
59
65
run : |
60
66
pyodide build-recipes ${{ steps.calculate_recipes_pr.outputs.recipes }} --install --install-dir=./repodata
@@ -89,11 +95,14 @@ jobs:
89
95
steps :
90
96
- uses : actions/checkout@v3
91
97
92
- - uses : actions /setup-python@v4
98
+ - uses : conda-incubator /setup-miniconda@v2
93
99
with :
94
- python-version : " 3.11"
100
+ activate-environment : pyodide-env
101
+ environment-file : environment.yml
102
+ channels : conda-forge
95
103
96
104
- name : Download latest Pyodide
105
+ shell : bash -l {0}
97
106
run : |
98
107
wget http://pyodide-cache.s3-website-us-east-1.amazonaws.com/xbuildenv/dev/pyodide-core.tar.bz2
99
108
tar -xvf pyodide-core.tar.bz2
@@ -105,11 +114,6 @@ jobs:
105
114
browser : ${{ matrix.test-config.runtime }}
106
115
browser-version : ${{ matrix.test-config.runtime-version }}
107
116
108
- - name : Install requirements
109
- shell : bash -l {0}
110
- run : |
111
- python3 -m pip install pytest pytest-pyodide pytest-httpserver
112
-
113
117
- name : Download build artifact
114
118
uses : actions/download-artifact@v2
115
119
with :
@@ -121,6 +125,7 @@ jobs:
121
125
cp ./repodata/* ./dist/
122
126
123
127
- name : Run tests
128
+ shell : bash -l {0}
124
129
run : |
125
130
# FIXME: skip webworker tests
126
131
pytest -v \
0 commit comments