forked from felixonmars/fcitx5-pinyin-zhwiki
-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (33 loc) · 974 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 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