Skip to content

Handling Dict Widgets in UI Correctly (#174) #149

Handling Dict Widgets in UI Correctly (#174)

Handling Dict Widgets in UI Correctly (#174) #149

Workflow file for this run

name: "Tests"
on:
push:
jobs:
build-web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
cache-dependency-path: web/package-lock.json
- name: Build Web
run: |
make web
- name: Upload Web Build
uses: actions/upload-artifact@v4
with:
name: web_dir
path: web/dist
retention-days: 1
tests:
runs-on: ubuntu-latest
needs: [build-web]
steps:
- uses: actions/checkout@v4
- name: Install poetry
run: |
pipx install poetry
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: poetry
- name: Install dependencies
run: |
poetry install --with dev
- name: Download Web Build
id: download
uses: actions/download-artifact@v4
with:
name: web_dir
path: web/dist
- name: Log Download Dir
run: |
echo "Downloaded web build to ${{ steps.download.outputs.download-path }}"
- name: Run tests
run: |
mkdir tests/outputs
poetry run pytest -s | tee -a tests/outputs/tests.log
- name: Upload test outputs
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results
path: tests/outputs
retention-days: 1