Skip to content

fix flask import

fix flask import #631

Workflow file for this run

name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
# - '3.13.0-alpha - 3.13'
- pypy3.8
- pypy3.9
- pypy3.10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python3 --version
python3 -m pip install --upgrade pip
pip install -r requirements.txt
pip install coverage html5validator setuptools
- name: Get DB version
run: |
DBVERSION="$(python3 -c 'import jiten.jmdict as J; print(J.DBVERSION)')"
echo "::set-output name=DBVERSION::$DBVERSION"
id: get-db-version
- name: Cache DB
uses: actions/cache@v3
with:
path: jiten/res/*.sqlite3
key: ${{ steps.get-db-version.outputs.DBVERSION }}
- name: Setup
run: make
- name: Test
run: make ci-test