Bump rollup, @vitejs/plugin-vue and vite in /src/frontend #55
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
push | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: Install pip and poetry | |
run: pip install --upgrade pip poetry | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pypoetry/virtualenvs | |
key: ${{ runner.os }}-poetry-${{ hashFiles('src/poetry.lock') }} | |
- name: Install Poetry dependencies | |
run: cd src && poetry install | |
- uses: actions/cache@v4 | |
with: | |
path: src/frontend/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('src/frontend/package-lock.json') }} | |
- name: Install Node dependencies | |
run: cd src/frontend && npm install | |
- name: Build frontend | |
run: cd src/frontend && npm run build | |
- name: Run tests | |
run: cd src && poetry run pytest -v |