-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (38 loc) · 1010 Bytes
/
test_poetry.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
44
45
46
47
name: test_poetry
on:
pull_request:
branches:
- '**'
workflow_call:
inputs:
check-service-test:
required: false
default: false
type: boolean
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10.11]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install MeCab dependencies
run: |
sudo apt-get update
sudo apt-get install -y mecab libmecab-dev mecab-ipadic-utf8
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "PATH=$HOME/.local/bin:$PATH" >> $GITHUB_ENV
- name: Install dependencies
run: |
poetry install
- name: Run tests
run: |
poetry run tox