Skip to content

Commit

Permalink
Update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking13 committed Jul 29, 2024
1 parent a41de28 commit 09ba688
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 3 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,42 @@ jobs:
with:
fail_ci_if_error: false

integration-test:
runs-on: ubuntu-latest
if: contains(github.event.head_commit.message, '[integration]')
steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.12"

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install the package
run: |
python -m pip install --upgrade pip
python -m pip install .
- name: Install xbuildenv
run: |
pyodide xbuildenv install
echo EMSCRIPTEN_VERSION=$(pyodide config get emscripten_version) >> $GITHUB_ENV
- name: Install Emscripten
uses: mymindstorm/setup-emsdk@v12
with:
version: ${{ env.EMSCRIPTEN_VERSION }}

- name: Run the integration tests (recipes)
run: |
cd integration_tests
make test-recipes
publish:
name: >-
Publish to PyPI
Expand Down
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ build
ccache
dist*/
docs/_build/
emsdk/emsdk
emsdk
geckodriver.log
node_modules
dist/
pyodide_build/**/build.log
xbuildenv/
.pyodide-xbuildenv*
pyodide/
venv/
venv/

# integration tests
integration_tests/**/build.log
integration_tests/**/.libs
8 changes: 7 additions & 1 deletion integration_tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ all:
test-recipe: check
@echo "... Running integration tests for building recipes"

pyodide build-recipes --recipe-dir=recipes --force-rebuild
pyodide build-recipes --recipe-dir=recipes --force-rebuild "*"

@echo "... Passed"

Expand All @@ -18,3 +18,9 @@ check:
@which emsdk > /dev/null || (echo "emscripten is not installed"; exit 1)

@echo "... Passed"

.PHONY: clean
clean:
rm -rf .pyodide-xbuildenv*
rm -rf recipes/*/build
rm -rf dist

0 comments on commit 09ba688

Please sign in to comment.