Skip to content

Keep all words successfully converted by pypinyin #12

Keep all words successfully converted by pypinyin

Keep all words successfully converted by pypinyin #12

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Tests
on:
push:
branches: ['master']
pull_request:
branches: ['master']
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install libime
run: sudo apt install -y libime-bin
- name: Install Poetry
run: pipx install poetry
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: '3.12'
cache: 'poetry'
- name: Install dependencies
run: |
poetry install
poetry env info
poetry show
- name: Lint with yapf
run: poetry run yapf -i -r mw2fcitx
- name: Test with pytest
run: poetry run pytest