Skip to content

Cache SVG data for icons, so that we don't get flickering when changing icons dynamically #1157

Cache SVG data for icons, so that we don't get flickering when changing icons dynamically

Cache SVG data for icons, so that we don't get flickering when changing icons dynamically #1157

Workflow file for this run

name: Run tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11"]
node-version: [19.x]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
python -m pip install . --no-deps
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
# # don't need to install Node dependencies because they are installed by the build hook
# - name: Install Node dependencies
# run: |
# npm install
- name: Run pre-commit
run: |
pre-commit run --all-files --verbose --show-diff-on-failure
- name: Run Python tests with pytest
run: |
pytest -vv
- name: Run Node tests
run: |
npm test