-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.64 KB
/
routine-tests.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
name: pytest
on:
push:
jobs:
flake8-pytest:
strategy:
fail-fast: false
matrix:
python-version: [3.8]
poetry-version: [1.2.1]
# os: [ubuntu-18.04, macos-latest, windows-latest]
os: [ubuntu-18.04, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Pre-install fastext pycld2 pyicu
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
poetry run pip install https://github.com/ffreemt/ezbee/raw/main/data/artifects/fasttext-0.9.2-cp38-cp38-win_amd64.whl
poetry run pip install https://github.com/ffreemt/ezbee/raw/main/data/artifects/pycld2-0.41-cp38-cp38-win_amd64.whl
poetry run pip install https://github.com/ffreemt/ezbee/raw/main/data/artifects/PyICU-2.8.1-cp38-cp38-win_amd64.whl
poetry run pip install pybind11
else
poetry run pip install fasttext pycld2 pyicu
fi
poetry run pip install https://github.com/ffreemt/ezbee/raw/main/data/artifects/polyglot-16.7.4.tar.gz
shell: bash
- name: Install packages
# if: matrix.os == 'windows-latest'
run: |
poetry run pip install -r requirements.txt
poetry run pip install flake8 pytest
- name: Run flake8
run: |
poetry run flake8 --exit-zero
# poetry run pytest
- name: Run pytest
run: poetry run pytest tests