Skip to content

Docker: python:3-slim-bookworm, Docker Image CI: produce pre-builded docker images #81

Docker: python:3-slim-bookworm, Docker Image CI: produce pre-builded docker images

Docker: python:3-slim-bookworm, Docker Image CI: produce pre-builded docker images #81

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
paths:
- '**.py'
- '**.yml'
pull_request:
branches: [ main ]
paths:
- '**.py'
jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v3
with:
submodules: 'true'
- uses: actions/setup-node@v3
with:
node-version: "16.x"
- name: Cache playwright binaries
uses: actions/cache@v3
id: playwright-cache
with:
path: |
~/.cache/ms-playwright
key: cache-playwright-linux-1.22.0
- name: Install Playwright
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache venv
uses: actions/cache@v3
with:
path: .venv
key: ${{ runner.os }}-${{ matrix.python-version }}-venv-${{ hashFiles('**/requirements.txt') }}
- name: Set up venv
run: make venv
- name: Check Messages
run: make -e message_test
- name: Typecheck
run: make typecheck
- name: Lint
run: make lint
- name: UI Smoketest
run: make webui_test