@@ -75,51 +75,17 @@ jobs:
75
75
# - name: Deploy to GitHub Pages
76
76
# id: deploy
77
77
# uses: actions/deploy-pages@v4
78
+
78
79
test :
79
- # needs: deploy
80
- runs-on : ubuntu-24
81
80
strategy :
82
81
matrix :
83
82
python-version : ["3.13"]
84
83
wasmer-version : ["v6.1.0-rc.3"]
85
- steps :
86
- - uses : actions/checkout@v5
87
- - name : Set up Python 3.13
88
- uses : actions/setup-python@v5
89
- with :
90
- python-version : ${{ matrix.python-version }}
91
- - name : Setup environment
92
- run : |
93
- python -m venv env
94
- source venv/bin/activate
95
- pip install .
96
- pip install pytest
97
- # Validate that the python tests themselves are valid
98
- - name : Run tests
99
- run : pytest
100
-
101
- # Secondly, validate that the tests pass within wasmer as well
102
- - name : Install uv
103
- run : curl -LsSf https://astral.sh/uv/install.sh | sh
104
- - name : Install wasmer
105
- run : curl https://get.wasmer.io -sSfL | sh -s ${{ matrix.wasmer-version }}
106
- - name : Setup project for wasmer
107
- run : |
108
- uv pip compile pyproject.toml \
109
- --python-version=${{ matrix.python-version }} \
110
- --universal \
111
- --extra-index-url https://pythonindex.wasix.org/simple \
112
- --index-url=https://pypi.org/simple \
113
- --emit-index-url \
114
- --only-binary :all: \
115
- -o wasmer-requirements.txt
116
-
117
- uvx pip install -r wasmer-requirements.txt \
118
- --python-version=${{ matrix.python-version }} \
119
- --target wasix-site-packages \
120
- --platform wasix_wasm32 \
121
- --only-binary=:all: \
122
- --compile
123
- # Ensure tests pass on wasmer
124
- - name : Run tests (wasmer)
125
- run : wasmer run .
84
+ uses : ./.github/workflows/test.yml
85
+ with :
86
+ python-version : ${{ matrix.python-version }}
87
+ wasmer-version : ${{ matrix.wasmer-version }}
88
+ # Test primary python index only for now. This
89
+ # setup allows for hosting a separate "testing" python
90
+ # index down the line (or simply a local one)
91
+ python-index : https://pythonindex.wasix.org
0 commit comments