Skip to content

Commit

Permalink
ci: run the new pyodide test suite in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Oct 28, 2024
1 parent ceac83e commit 26ed8db
Showing 1 changed file with 28 additions and 15 deletions.
43 changes: 28 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,31 +66,44 @@ jobs:
poe test
test-pyodide:
needs: pre_job
needs: [pre_job, build]
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Python "3.10"
uses: actions/setup-python@v4
- uses: actions/checkout@v4

- uses: 'actions/setup-node@v4'
with:
python-version: "3.10"
node-version: 20.x
cache: 'npm'
cache-dependency-path: 'tests/pyodide/package-lock.json'

- id: setup-python
uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-in-project: true

- uses: actions/download-artifact@v4
with:
name: build-artifacts
path: 'dist'

- name: Install Dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install --with pyodide
- name: Run Testsuite
uses: nick-fields/retry@v2
with:
timeout_minutes: 10
max_attempts: 6
command: |
source $VENV
poe test-pyodide || true
poetry install --with test
cd tests/pyodide
npm ci
- name: Run tests
run: |
source $VENV
poe test-pyodide
lint:
needs: pre_job
Expand Down

0 comments on commit 26ed8db

Please sign in to comment.